Hi all,
I have search through the forum but it seems i cant find out how to get Nginx working properly .
I really hope someone can send me the right config which i need so i finally got Nginx working
Current config
Centos 7 + PHP 7.09
Wordpress is set to use the following permalink settings
/%postname%/ to use friendly names
I need to have friendly names otherwhise because the cache plugin WP-Rocket needs it for smooth running
So i like to setup Plesk using FPM Application served by Nginx instead of Apache.
If i change to FPM served by Nginx not all the content is loaded properly. Some product images arent loading, and some JS and CSS files seems to strugle
I add the following on the Additional nginx directives:
-------------------
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
-------------------
I also seen a post where i could use the Yoast Sitemap for redirection by adding the following; Cleary that is not working for me.
I like to use the sitemap option aswell.
----------------
rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
----------------------
Hopefully someone can help me by creating the right nginx directives. Many thanks in advanced!!
I have search through the forum but it seems i cant find out how to get Nginx working properly .
I really hope someone can send me the right config which i need so i finally got Nginx working
Current config
Centos 7 + PHP 7.09
Wordpress is set to use the following permalink settings
/%postname%/ to use friendly names
I need to have friendly names otherwhise because the cache plugin WP-Rocket needs it for smooth running
So i like to setup Plesk using FPM Application served by Nginx instead of Apache.
If i change to FPM served by Nginx not all the content is loaded properly. Some product images arent loading, and some JS and CSS files seems to strugle
I add the following on the Additional nginx directives:
-------------------
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
-------------------
I also seen a post where i could use the Yoast Sitemap for redirection by adding the following; Cleary that is not working for me.
I like to use the sitemap option aswell.
----------------
rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
----------------------
Hopefully someone can help me by creating the right nginx directives. Many thanks in advanced!!