[wp-trac] [WordPress Trac] #12404: Default Pretty Permalinks on Install

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 27 05:50:47 UTC 2010


#12404: Default Pretty Permalinks on Install
-------------------------+--------------------------------------------------
 Reporter:  mdawaffe     |       Owner:  ryan          
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  Permalinks   |     Version:  3.0           
 Severity:  normal       |    Keywords:                
-------------------------+--------------------------------------------------
 Currently, we default to uglinks (http://example.com/?p=1) on new installs
 since we don't know if we can write to .htaccess ahead of time.

 It'd be nice if we could set up pretty permalinks by default if possible.

 A couple options to kick of some brainstorming.

  1. Set structure to {{{/%year%/%monthnum%/%postname%/}}}, see if it works
 behind the scenes.  If it doesn't work, set to
 {{{/index.php/%year%/%monthnum%/%postname%/}}}, see if it works behind the
 scenes.  If it doesn't work, set to uglinks.
  2. Enable query string based permalinks:
 {{{/?%year%/%monthnum%/%postname%/}}}.  This would require changes to the
 wp and rewrite classes.
 ... other ideas?

 In any case, we may want to prompt users to look at their permalink
 settings just after they install.  If they change their structure a month
 later, their old links will be broken since we have no mechanism to
 redirect from either of the suggestions above to a new arbitrary
 structure.  (The current default uglinks don't create this problem because
 we can always make a match from uglinks).

 Though we could create such a heuristic mechanism:
  If 404, look to see if request matches the default permalink structure,
 and if there's something there to redirect to, then 301.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12404>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list