Created
January 11, 2013 21:53
-
-
Save feedmeastraycat/4514259 to your computer and use it in GitHub Desktop.
WP rewrite example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_rewrite_rule('english/news/([^/]+)(/[0-9]+)?/?$', 'index.php?english=$matches[1]&page=$matches[2]', 'top'); | |
add_rewrite_rule('english/press/press-releases/([^/]+)(/[0-9]+)?/?$', 'index.php?english=$matches[1]&page=$matches[2]', 'top'); | |
flush_rewrite_rules(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment