File: //etc/nginx/conf.d/users/housetomyhouseco/housetomyhouse.com.ng/wp-toolkit.conf
# This file is automatically generated by WP Toolkit.
# Please do not modify the contents of this file, because this can lead to reduced security or malfunctioning of your website.
# If the file was accidentally modified or otherwise damaged, you can regenerate it by deleting it and reapplying all security
# measures for this site in WP Toolkit UI.
# WordPress permalink
# To remove this rule, add "wordpressPermalinkHandlingFeature = false" in the [ext-wp-toolkit] section of panel.ini
# then reconfigure the current domain
set $sef_entry_point /;
if ($uri ~* "^/") {
set $sef_entry_point "/index.php?$args";
}
if ($uri ~* "^/home/") {
set $sef_entry_point "/home/index.php?$args";
}
if ($uri ~* "^/jobs/") {
set $sef_entry_point "/jobs/index.php?$args";
}
if ($uri ~* "^/work/") {
set $sef_entry_point "/work/index.php?$args";
}
if ($uri ~* "^/doye/") {
set $sef_entry_point "/doye/index.php?$args";
}
if ($uri ~* "^/hotel/") {
set $sef_entry_point "/hotel/index.php?$args";
}
if ($uri ~* "^/hotels/") {
set $sef_entry_point "/hotels/index.php?$args";
}
if ($uri ~* "^/education/") {
set $sef_entry_point "/education/index.php?$args";
}
if ($uri ~* "^/restaurants/") {
set $sef_entry_point "/restaurants/index.php?$args";
}
if ($uri ~* "^/abikesoluade/") {
set $sef_entry_point "/abikesoluade/index.php?$args";
}
if ($uri ~* "^/abikeagnessoluade/") {
set $sef_entry_point "/abikeagnessoluade/index.php?$args";
}
if ($uri ~* "^/olujimielectronics/") {
set $sef_entry_point "/olujimielectronics/index.php?$args";
}
location @wpt_permalinks_fallback {
try_files $uri $sef_entry_point;
}
error_page 404 = @wpt_permalinks_fallback;
error_page 405 = @wpt_permalinks_fallback;