Ready to get started?Download WordPress


Let WP respond to all domains with the same site (8 posts)

  1. CraigW
    Posted 3 years ago #


    I apologise if this is a stupid question, but everything I have read about running 'multiple' WP sites doesn't quite fit that I can see.

    Say I create a wordpress site under http://www.mydomain1.com and populate it with content. Now say that want to add another domain called http://www.mydomain2.com and have the same site come up under that too. How can this best be acheived? I am open to code changes or plugins.

    (Names changed to protect the innocent)


  2. bmack94536
    Posted 2 years ago #

    Craig -

    Curious to know if you have already found a solution to this issue. I am trying to do something similar. If I understand correctly, the WordPress MU Domain Mapping plugin would handle this sort of situation nicely, but I am curious to hear from someone who might have done this already.

    Bob Mack

  3. Mitchell Bundy
    Posted 2 years ago #

    The Domain Mapping plugin that bmack94536 speaks of will work, but it will redirect the domain to the main domain and not mirror it. Is that would you want, or do you want it completely mirrored?

  4. bmack94536
    Posted 2 years ago #

    We're changing our company's web address so I'd like to mirror both domains for a while so as to not lose people who might be visiting old links. But I don't want to have to maintain 2 separate domains, both of which will include numerous sub domains.

    Of course, I may be wrong in thinking to do things in that manner. Perhaps I am better off just making the switch at some point and letting the old domain go to avoid duplication?

  5. Mitchell Bundy
    Posted 2 years ago #

    I'd recommend not mirroring the site, the "domain mapping" plugin should redirect links correctly if the domains are mapped to the same site. MIrroring a site will create duplicate content, and search engines don't like that.

    I'd actually recommend making an .htaccess file on the old domain and have it redirect to the new one. It's much simpler.

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.olddomain.com$[OR]
    RewriteCond %{HTTP_HOST} ^olddomain.com$
    RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
  6. bmack94536
    Posted 2 years ago #

    I appreciate your thoughts and I expect you are correct.


  7. CraigW
    Posted 2 years ago #

    I didn't find a solution yet and am stuck with redirects.

    Is there no way to remove the url setting in wordpress and render all links starting / instead of http:// ?

  8. CraigW
    Posted 2 years ago #

    I just found a plugin that does it. It's called 'Any Hostname' and seems to do just what I needed.

Topic Closed

This topic has been closed to new replies.

About this Topic