216 questions

223 answers

12 comments

334 users

Welcome to OSSbible, where you can ask Open Source Products questions and receive answers from members of the community. OSSbible has very active & vibrant community members whose knowledge is unparalleled.

How to change permalinks settings for multiple wordpress changes in nginx, to fix 500 internal server error.

+4 votes
asked Dec 1, 2015 by Wayne (310 points)

1 Answer

+2 votes
change nginx config file

vim /etc/nginx/site-enabled/default

Added in nginx default file:-

location /personalisedmedicine {

try_files $uri $uri/ /index.html /personalisedmedicine/index.php?$args;

}

location /sanfordmoms {

try_files $uri $uri/ /index.html /sanfordmoms/index.php?$args;

}

Ref:https://wordpress.org/support/topic/pretty-permalinks-on-nginx
answered Dec 1, 2015 by rajashekar (1,610 points)
...