[wp-trac] [WordPress Trac] #25098: Support URL rewrites on Nginx

WordPress Trac noreply at wordpress.org
Wed Aug 21 08:58:05 UTC 2013


#25098: Support URL rewrites on Nginx
---------------------------+------------------
 Reporter:  johnbillion    |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  3.7
Component:  Rewrite Rules  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------

Comment (by johnbillion):

 Replying to [comment:4 dd32]:
 > The one thing that this patch is lacking, is the fact that by default
 nginx isn't configured for url rewriting, but we do configure Apache/IIS
 as best we can for rewrites.
 This is being addressed in #18852. The user will be shown the recommended
 Nginx configuration on the Permalinks screen, in the same way the
 recommended .htaccess rules are shown if it's not writable, or the
 recommended IIS web.config if it's not writable.

 Effectively, we're treating the Nginx config as not writable. This mirrors
 the behaviour of WordPress when the server is running Apache and the
 .htaccess file is not writable.

 ----

 Replying to [comment:5 c3mdigital]:
 > One thing we could do is write the configuration in the root web
 directory and update the codex examples to include this file in their
 server configurations. This is how W3 Total Cache writes to the nginx
 config.
 Note that W3TC doesn't write to the actual Nginx config file. It writes to
 a dummy file called nginx.conf in the server's document root, and it's up
 to the user to copy or merge those rules into their actual Nginx config
 file.

 Writing the config rules to a dummy nginx.conf file in the document root
 serves no purpose; we may as well just show the rules on the Permalinks
 screen.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25098#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list