Issues after changing permalinks
-
Hi,
After I change the permalink style from Plain to any of the other options, I encounters errors – mainly with forms.
Login/Logout/Contact forms etc. do not appear to do anything.In the Nginx error log, the following errors appear:
2019/07/17 15:09:24 [error] 26688#0: *1 "/data001/***/***/***/***/***.com/index.php/my-account/customer-logout/index.php" is not found (20: Not a directory), <truncated>Nginx and php-fpm are running as nginx and the directory is owned by nginx (755/644) permissions.
The appending of index.php to the URL seems odd.
But I’m not sure why this is happening.
I’ve always used Apache, but opted for Nginx to get better performance.
So I think the issue may be due to my limited knowledge here.Nginx Config:
location / { #try_files $uri $uri/ /index.php; try_files $uri $uri/ /index.php?$args; #try_files $uri $uri/; include /***/***/***/***/***/***.com/nginx.conf; }location ~ .php$ { #try_files $uri =404; try_files $uri $uri/ /index.php?$args; #try_files $uri $uri/; include /***/***/***/***/***/***.com/nginx.conf; #fastcgi_pass 127.0.0.1:9000; fastcgi_pass unix:/var/run/php7.0-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }Centos 7
Wordpress Version 5.2.2
Nginx: 1.12.2
PHP 7.3.7
MariaDB 15.1
Notable Plugins: W3 Total Cache, Woocommerce, WP-OptimizeThank you!
The topic ‘Issues after changing permalinks’ is closed to new replies.