[wp-trac] [WordPress Trac] #18852: Nginx rewrite rules
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 4 00:31:20 UTC 2011
#18852: Nginx rewrite rules
---------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
---------------------------+------------------------------
Old description:
> On the Permalinks screen we show rewrite rules for IIS and for
> mod_rewrite on Apache. Nginx is
> [http://news.netcraft.com/archives/2011/09/06/september-2011-web-server-
> survey.html getting pretty popular now], so we should think about showing
> Nginx rewrite rules on this screen.
>
> Unfortunately WordPress can't write directly to Nginx's rewrite
> configuration, but we can show the required rules for convenience and we
> can allow plugins to filter them if necessary (in the samw way IIS and
> mod_rewrite rules can be filtered).
New description:
On the Permalinks screen we show rewrite rules for IIS and for mod_rewrite
on Apache. Nginx is
[http://news.netcraft.com/archives/2011/09/06/september-2011-web-server-
survey.html getting pretty popular now], so we should think about showing
Nginx rewrite rules on this screen.
Unfortunately WordPress can't write directly to Nginx's rewrite
configuration, but we can show the required rules for convenience and we
can allow plugins to filter them if necessary (in the samw way IIS and
mod_rewrite rules can be filtered).
[[BR]]
--
Comment (by dd32):
Those rules can be slimed down a bit, no need to check for the file-exists
check as try_files handles that through it's priority queue:
{{{
location / {
try_files $uri $uri/ /index.php$args;
}
}}}
ie. If File exists, Elseif, If it's a Directory, Else, Lets pass it to
!WordPress
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18852#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list