Skip to content

Instantly share code, notes, and snippets.

@kamaroly
Created November 23, 2017 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamaroly/b70d3d8873aa2358a902955d5604c87e to your computer and use it in GitHub Desktop.
Save kamaroly/b70d3d8873aa2358a902955d5604c87e to your computer and use it in GitHub Desktop.
Multiple WordPress installation behind LoadBalancer
<?php
/**
* SET URL BASED ON THE CURRENT URL
*/
define('WP_SITEURL', $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST']); 
define('WP_HOME', $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST']);
/** OTHER WORDPRESS CONFIGURATIONS **/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment