Welcome! Log In Create A New Profile

Advanced

Issue Can't get rid of index.php prefix from all wordpress url slugs

Posted by f0rtem 
Issue Can't get rid of index.php prefix from all wordpress url slugs
September 06, 2022 09:38AM
Hi, I've installed WordPress using Plesk WordPress Toolkit, I noticed that my permalinks structure included the prefix /index.php/url. I've tried simply deleting it, however it causes server error 404 page not found to appear for all of my pages.

PHP 8.1.9 running as FPM application served by nginx.

If I choose any other permalink structure without /index.php/ in front I get 404 error on my pages.

So basically my pages have to look like this: https://website.com/index.php/blog/this-is-my-blog/ in order to work and not give me 404. If I change permalink structure to: https://website.com/blog/this-is-my-blog/ I get 404.

My website.com.conf file about permalinks:

# 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";
}
location @wpt_permalinks_fallback {
try_files $uri $sef_entry_point;
}
error_page 404 = @wpt_permalinks_fallback;
error_page 405 = @wpt_permalinks_fallback;


I wonder if anyone has any suggestions on how I might be able to solve this.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 277
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready