[wp-trac] [WordPress Trac] #18852: Nginx rewrite rules
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 12 14:40:38 UTC 2012
#18852: Nginx rewrite rules
-------------------------------------+--------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: accepted
Priority: normal | Milestone: 3.5
Component: Rewrite Rules | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------
Comment (by johnkleinschmidt):
I believe the regex syntaxes are identical; though there may be cases they
are not. Though ideally there would be use cases for performance reasons
where you would want to encapsulate a rewrite rule in a location. eg:
{{{
#Apache rewrite rule:
RewriteRule ^/news$ /blog/category/correspondents
#Nginx rewrite rule
rewrite ^/news$ /blog/category/correspondents last;
#Better performing nginx rewrite rule:
location ^~ /news {
rewrite ^ /blog/category/correspondents last;
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18852#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list