Created
July 13, 2017 15:29
-
-
Save Tmeister/ea992e91ca63040b63f33b0264c9066a to your computer and use it in GitHub Desktop.
Set the WP setting to the current server host
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 | |
define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']); | |
define('WP_SITEURL', SP_REQUEST_URL); | |
define('WP_HOME', SP_REQUEST_URL); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment