Changed @rewrites location & rules

Renamed "@rewrites" to "@dynamic" and updated references to that location.  Removed 'rewrite' rule from @dynamic and replaced it with 'try_files' rule.
This commit is contained in:
Christiaan Conover 2013-07-10 13:39:15 -04:00
parent 3d0a36b396
commit 4eb499d5ca

View file

@ -134,7 +134,7 @@ MEMCACHED_SERVERS
if ( $memcached_request = 1) {
memcached_pass memcached-servers;
error_page 404 = @rewrites;
error_page 404 = @dynamic;
}
if ( $memcached_request = 0) {
@ -142,9 +142,9 @@ MEMCACHED_SERVERS
}
}
## rewrite rules
location @rewrites {
rewrite ^ /index.php?$args last;
## Dynamic (non-memcached) requests
location @dynamic {
try_files $uri $uri/ /index.php$is_args$args;
}
}