asked 5 years ago

Hi, anyone managed to setup this plugin working on nginx? Trying to open any question results in error 404. Regardless what permalink settings are used. 

1 Answers
answered 5 years ago

If you are on Apache, with mod_rewrite, WordPress will automatically add the required rewrite rules to your .htaccess file for permalinks to work. But for nginx, you have to add the rules manually.
Select config on your Nginx node and open nginx.conf under the conf folder.
Add the line “try_files $uri $uri/ /index.php?$args;” to the configuration file in the / location section so it will look like this.

location / {
root /var/www/webroot/ROOT;
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?$args;

Then restart Nginx

Dominic Staff
replied 5 years ago

However, I’m not sure about the plugin will work with this solution. Because we do not yet check the plugin on the nginx.

Powered by DW Question & Answer Pro