Query String based Permalinks
|Reported by:||mdawaffe||Owned by:||ryan|
Here's a 80% working patch to implement query string based permalinks (/?%year%/%monthnum%/%postname%/) mentioned in #12404.
- http://example.com/ (home URL)
- http://example.com/?nothing (query string with args that don't have anything to do with the permalink structure)
- 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 $matches 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).