Created
August 24, 2015 18:39
-
-
Save cmg-jess/e39533a42c815c85bfb9 to your computer and use it in GitHub Desktop.
This file contains 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
# very top of header.php file | |
# can use page ID | |
<?php if(is_page('58')){ | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Status: 301 Moved Permanently"); | |
header("Location: http://www.domain.com/es/lasik/"); | |
header("Connection: close"); | |
exit(0); // Optional, prevents any accidental output | |
} | |
# or page slug | |
if(is_page('intralase')){ | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Status: 301 Moved Permanently"); | |
header("Location: http://www.domain.com/lasik/"); | |
header("Connection: close"); | |
exit(0); // Optional, prevents any accidental output | |
} ?> | |
# location URL must be absolute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment