[wp-trac] [WordPress Trac] #6481: Fancy permalinks should be enabled on new sites

WordPress Trac noreply at wordpress.org
Wed Feb 12 18:24:19 UTC 2014


#6481: Fancy permalinks should be enabled on new sites
-------------------------------+-----------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Future Release
Component:  Permalinks         |     Version:  2.7
 Severity:  minor              |  Resolution:
 Keywords:  needs-patch        |     Focuses:
-------------------------------+-----------------------------

Comment (by aaroncampbell):

 So basically what we need is:
 * Update permalink structure using
 `$wp_rewrite->set_permalink_structure();`
 * Update `.htaccess` or `web.config` by hard flushing the rewrite rules
 `flush_rewrite_rules()`
 * Check for 404s or 500s using a head request
   * This means we need some sort of content to test.  If no posts or terms
 exist, maybe the author page for the first user

 This should give us pretty permalinks for sites on Apache and IIS that
 have a writable config file that allows for rewrites, but only if that
 file is processed immediately and not on a delay.

 It's certainly not everyone, and I definitely think we need to code really
 defensively to make sure that we fall back to standard permalinks if we're
 not 100% sure pretty permalinks are working, but it seems doable.  It also
 seems like a nice step forward for the web in general.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/6481#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list