[wp-hackers] Rebuild all rewrite rules
    Michael D Adams 
    mda at blogwaffe.com
       
    Wed Aug 17 02:47:40 UTC 2011
    
    
  
On Tue, Aug 16, 2011 at 6:51 PM, Ankur Oberoi <aoberoi at gmail.com> wrote:
> Also, in a related matter, I would like to add a rule that routes /developer
> to /tag/developer for my blog. I understand this is bad from a performance
> POV but I still need to be able to do this for my readers (and boss). I
> attempted to something like the following:
>
> function tokblog_add_rewrite_rules( $wp_rewrite )
> {
>  $new_rules = array( 'developer(.+)$' => 'index.php?tag=developer' );
Looks like a bad regex.  Try 'developer/?$'.  Then flush your rewrite
rules per Otto.
Mike
--mdawaffe
    
    
More information about the wp-hackers
mailing list