Thursday 23 January 2014

Solution : Nginx Wordpress Pretty Permalinks Problem

To enable Pretty Permalinks feature in nginx simply modify the nginx conf file of wordpress site add following line
try_files $uri $uri/ /index.php?$args;
check example where to add above line

Example:
file: wordpress.conf
.....................
.......................
 location / {
        root   /var/www/html/wordpress;
        index  index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
    ...
    .....

 }
................
................

Share This!



No comments:

Post a Comment

Here We Write The Problems we face at different situations and Solutions to those problems.