Hello,
This is my stack:
Everything works fine except for the permalinks. I understand that Wordpress 4.1 update should have fixed the rewrite rules for Nginx, however, I am getting the white-screen of death everytime I changed the permalink setting. Even when I switched back to default permalink, the pages does not show.
I am however still able to see the homepage (index.php).
I’ve added the following to /etc/nginx/sites-enabled/domain.com:
location / {
try_files $uri $uri/ /index.php?$args;
}
However, when I reload Nginx, and changed the permalink in WP admin panel, Wordpress is still automatically creating a .htaccess file. As I would understand .htaccess is not recognised in Nginx.
Can anyone point me to where I should be looking at in the configs?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
osCommerce not install naginxand wordpress on cento6.5
hey oscommerce not working Warning: require_once(/usr/share/nginx/html/wp-content/plugins/osCommerce/classes/osc_db.class.php): failed to open stream: No such file or directory in /usr/share/nginx/html/wp-content/plugins/oscommerce/osCommerce.php on line 37 Fatal error: require_once(): Failed opening required ‘/usr/share/nginx/html/wp-content/plugins/osCommerce/classes/osc_db.class.php’ (include_path=‘.:/usr/share/pear:/usr/share/php’) in /usr/share/nginx/html/wp-content/plugins/oscommerce/osCommerce.php on
Ok I just figured out the problem. It was a plugin conflict.
I have the same issue, see https://www.digitalocean.com/community/questions/wordpress-isnt-loading-right-with-nginx-rewrite-rules
Could someone help us out?