Multiple domains?

Hi,

I need a site to be accessible from two domains. I found this:

/*
 * Handle multi domain into single instance of wordpress installation
 */
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);

But it doesn’t seem to to the trick, because of my sites not being in the domain root. The urls look like this: example.com/wp-site

Anyone know how to solve this?

Have you tried

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . 'wp-site');
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . 'wp-site');
1 Like

No, but I will=)

EDIT: looks like its working=)

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.