[wp-hackers] Bug or feature: Wordpress default rewrite rules cannot be overridden?

Austin Matzko if.website at gmail.com
Sun Dec 6 15:36:39 UTC 2009


On Sun, Dec 6, 2009 at 8:04 AM, Bjorn Wijers <burobjorn at gmail.com> wrote:
> $docs_rule3 = array(
> 'this-is-a-page/this-is-my-public-q-var/([a-zA-Z0-9]{1,})/?$' =>
> 'index.php?pagename=this-is-a-page&my-extra-var=this-is-my-public-q-var&this-is-a-var=$matches[1]'
> );
>
> To match this:
>
> http://site.dev/this-is-a-page/this-is-my-public-query-var/this-is-a-random-string/

The rule has "this-is-my-public-q-var" and the request has
"this-is-my-public-query-var".


More information about the wp-hackers mailing list