#1 WordPress in a subfolder on Nginx
I’ve tried to install my blog as a WordPress install in a subfolder called /blog
and I found that Nginx doesn’t do it automatically so in your /etc/nginx/sites-available/yoursite.com
you have to add the following:
1 2 3 4 |
location /blog { index index.html index.htm index.php; try_files $uri $uri/ /blog/index.php?$args } |