[wp-trac] [WordPress Trac] #12405: Query String based Permalinks

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


#12405: Query String based Permalinks
-------------------------+--------------------------------------------------
 Reporter:  mdawaffe     |       Owner:  ryan          
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  Permalinks   |     Version:  3.0           
 Severity:  normal       |    Keywords:  has-patch     
-------------------------+--------------------------------------------------
 Here's a 80% working patch to implement query string based permalinks
 ({{{/?%year%/%monthnum%/%postname%/}}}) mentioned in #12404.

 Try
  1. http://example.com/ (home URL)
  2. http://example.com/?nothing (query string with args that don't have
 anything to do with the permalink structure)
  3. http://example.com/?2010/02/hello-world/ (a post)

 I'm not sure if this is the best implementation.  It's also hacked
 together (fixing the {{{$match}}}es on the fly instead of generating the
 real rewrite rules, for example).  Call it a proof of concept.

 Canonical redirects don't work correctly when using query string
 permalinks with this patch (?p=1 doesn't redirect).

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


More information about the wp-trac mailing list