×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Nicole Patten
Added: Mar 8, 2016 10:41 PM
Views: 52
  1. define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']);
  2.  
  3. define('WP_SITEURL', SP_REQUEST_URL);
  4. define('WP_HOME', SP_REQUEST_URL);