WP: mutilple domains support for one site

If you have several domains and you want all of them to direct to one site, then add the following two lines to your wp-config.php file:

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);

Answer to this issue I found in the thread Multiple Domains, One Site

Leave a Reply

%d bloggers like this: