Created
July 1, 2015 17:58
-
-
Save pedropxm/521ea46e69ad3df4cd5a to your computer and use it in GitHub Desktop.
Wordpress domain config
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 | |
| $host = $_SERVER['HTTP_HOST']; | |
| $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); | |
| $url = str_replace('/wp-admin','',"http://". $host. $uri."/"); | |
| define('WP_HOME',$url); | |
| define('WP_SITEURL',$url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment