Created
October 7, 2017 07:11
-
-
Save buiquangduc/49e57ff17d2c4fc25094b96eb308211b to your computer and use it in GitHub Desktop.
Avoid redirec WordPress
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
<?php | |
define('VA_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']); | |
define('WP_SITEURL', VA_REQUEST_URL); | |
define('WP_HOME', VA_REQUEST_URL); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment