Created
February 2, 2017 02:33
-
-
Save lehelmatyus/4725b2ded357273a5802c13327ee6e80 to your computer and use it in GitHub Desktop.
wp-config.php
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
if (isset($_SERVER['PANTHEON_ENVIRONMENT']) && | |
$_SERVER['PANTHEON_ENVIRONMENT'] === 'live') { | |
if ($_SERVER['HTTP_HOST'] == 'lehelmatyus.com' || | |
$_SERVER['HTTP_HOST'] == 'live-lehelmatyus.gotpantheon.com') { | |
header('HTTP/1.0 301 Moved Permanently'); | |
header('Location: http://www.lehelmatyus.com'. $_SERVER['REQUEST_URI']); | |
exit(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment