Trouble Serving Multiple Domains (3 posts)

  1. thepete
    Posted 7 years ago #

    Up until a couple days ago, I was using WP 2.2. With that version of WP, I was able to serve multiple domains with the same index.php file. In that index, I had "echo $_SERVER['HTTP_HOST']" php tags that would invoke the domain the browser was pointed at and then include the appropriate CSS. However, since I upgraded to WP 2.3.2, WordPress seems to be auto-forwarding back to my main domain. It's possible that my host changed the way they forward parked domains, but I think the odds of them doing it on the exact same day as I decided to upgrade to 2.3.2 are pretty slim. I'm guessing this is some security thing with WP trying to bind the content to the domain--can someone confirm this for me? And if I'm right, does anyone have any ideas as to how to stop this from happening?

  2. moshu
    Posted 7 years ago #

    My guess is it is related to the "canonical urls" introduced in 2.3. Reading: http://wordpress.org/development/2007/09/wordpress-23/
    + the links

  3. thepete
    Posted 7 years ago #

    That was definitely it, Moshu! Thanks!

    For anyone else having a similar issue with canonical URLs, you can read more about it here:


    Or do what I did and just install a plugin that disables this feature--the plugin is available here:


    Personally, I think there should be an option to turn on and off this feature or at least have a way to tell it not mess with the domain for cases like mine. But either way, I'm happy now.

Topic Closed

This topic has been closed to new replies.

About this Topic