1
You should use the ^~ prefix on the location statement, change the alias statement to root /var/www;, and change the last parameter of the try_files statement.
For example:
location ^~ /blog/ {
autoindex on;
root /var/www;
index index.php;
try_files $uri $uri/ /blog/index.php?$args;
location ~ \.php$ {
include snippets/fastcgi-...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
permalinks × 3005custom-post-types × 620
url-rewriting × 458
custom-taxonomy × 278
rewrite-rules × 248
urls × 208
categories × 206
posts × 180
slug × 177
404-error × 173
htaccess × 172
redirect × 146
pages × 126
plugins × 110
php × 99
customization × 90
links × 79
plugin-development × 74
pagination × 61
taxonomy × 57
archives × 56
multisite × 51
templates × 51
functions × 49
theme-development × 44