Guest User

Untitled

a guest
Apr 30th, 2011
136
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function my_rewrite_rules_array( $rules ) {
  2.  
  3.     $rules = array_merge( array(
  4.         'foo/bar/?$' => 'index.php?pagename=foo/bar',
  5.         'foo/baz/?$' => 'index.php?pagename=foo/baz'
  6.     ), $rules );
  7.  
  8.     return $rules;
  9.  
  10. }
  11. add_filter( 'rewrite_rules_array', 'my_rewrite_rules_array' );
RAW Paste Data