Last active
February 2, 2020 04:48
-
-
Save ambercouch/9639185 to your computer and use it in GitHub Desktop.
Define your site url in 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
/** | |
* When developing locally define these constants in your wp-config.php instead to your database. | |
* This saves time when moving your database. | |
*/ | |
if (!defined('WP_SITEURL')) { | |
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME']); | |
} | |
if (!defined('WP_HOME')) { | |
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']); | |
} | |
/** Sets up WordPress vars and included files. */ | |
require_once(ABSPATH . 'wp-settings.php'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment