Advertisement
Guest User

Untitled

a guest
Apr 30th, 2011
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  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' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement