Link to home
Start Free TrialLog in
Avatar of ZenQuest
ZenQuest

asked on

Multiple domains one Wordpress site

Is it possible to host one wordpress site that works under multiple domain names?  I'd rather not do any direction.  If you start on Site A, you stay on site A throughout.  

example...

www.xyzdomain.com/wp-admin

is the same as

www.abcdomain.com/wp-admin

I'll be hosting the site on IIS.

Thanks for any information.
Avatar of DrDamnit
DrDamnit
Flag of United States of America image

You will only be able to do this with a 301 redirect where www.xyzdomain.com -> www.abcdomain.com. Wordpress itself REQUIRES that the domain be setup in the database. So, you'll have to pick one or the other as the main site, and then redirec the other one to it.

There is ONE other option, however, you could setup database replication between two sites to keep the content the same. But that much more complicated, and not a good solution.
If you absolutely must have two identical site with different domains:

1. Setup Wordpress on both sites.
2. Setup the theme on both sites so they look the same.
3. Setup replication between the two myslq servers (http://dev.mysql.com/doc/refman/5.5/en/replication.html).
4. Always add content to the master site, and it will be replicated on the sister (slave) site.
You can do this through domain mirroring (aka Server Alias) if your ISP allows it:

http://httpd.apache.org/docs/2.0/vhosts/name-based.html

This removes the need for creating physical mirrors of the site as mentioned above.
@jason1178:

He's on <shudder>IIS</shudder>. IIS doesn't alias quite like apache does, and I have never tried it either...

@Zenquest:

If at all possible, doing this on a Linux / Apache server would work much better if you have that option.
>> He's on <shudder>IIS</shudder>. IIS doesn't alias quite like apache does, and I have never tried it either...

I clearly Fail at reading beyond the title.  Maybe I should stop now and try to get banned by my local frozen yogurt place...
Avatar of ZenQuest
ZenQuest

ASKER

Even if I could alias / mirror...  wouldn't wordpress itself create dynamic links that would be based on the configured domain name inside wordpress?

Regardless of IIS vs Apache?
ASKER CERTIFIED SOLUTION
Avatar of DrDamnit
DrDamnit
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can someone please comment on SEO implications of doing this - isn't this going to potentially pose problems?

I thought most modern search engines penalize the site if the content is "duplicated..." but I don't technically know much about it.

edit: I mean "duplicated across differing domains"
>> Can someone please comment on SEO implications of doing this - isn't this going to potentially pose problems?

As wholly separate sites with different IP addresses there may be some penalties for duplicate content.  Again, this is why aliasing is the best solution (IIS problems  and internal linking aside) as having everything resolve to the single IP would alleviate most or all of the SEO issues.

>> I thought most modern search engines penalize the site if the content is duplicated

That's a little oversimplified but essentially true for purposes of discussion.  The reality is that you can have duplicated content without penalty in certain situations.

>> wouldn't wordpress itself create dynamic links that would be based on the configured domain name inside wordpress?

Yes, but this could be handled with clever RewriteRules to keep the user on the same domain internally.  Another thought would be to run WordPress in Network mode and leverage some plugins that can duplicate content from sub-site to sub-site across the Network and that would also preserve the internal linking structures but is geometrically more difficult to deploy.
Thank you, jason.