Created
February 7, 2018 22:43
-
-
Save jbd91/898fd0b7fde9b2dee7c22c6e8fda9f3b to your computer and use it in GitHub Desktop.
WP Config Redirect
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
| // Redirect non-existant single post page to primary listing page | |
| if (preg_match('/^\/blog\/technician/', $_SERVER['REQUEST_URI'])) { | |
| header('HTTP/1.0 301 Moved Permanently'); | |
| header('Location: /technician-locator'); | |
| exit(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment