• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1104
  • Last Modified:

Wordpress - multiple domain names for one site

We have started using wordpress for a couple of company sites. We have encountered a problem once we redirected a second domain name to the host.

First we setup the site with a temporary domain, when it was ready we redirected the two domains we have for it and we stopped pointing the temporary domain to it.

Our first problem is that we can no longer access wp-admin at either of the new domains.

Our second problem is the linking, we thought we used relative linking throughout the site, but we can only get to the home page using both of the domain names, but when we hover over any of the links they are still displaying the temporary domain name.

Can anyone suggest a solution?
0
Impressionist
Asked:
Impressionist
1 Solution
 
Jason C. LevineNo oneCommented:
When you do as you describe above, you also need to change WordPress so at least one of the new domain names is in the Settings.  You also need to rebuild permalinks and probably should also do a search and replace for the original temporary domain name in the posts table and change all instances there.

Essentially what you are doing is moving the site without actually moving it.  I describe several steps that you should be taking in this article:

http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_10258-How-To-Move-A-WordPress-Site.html

Look at the steps following the "Export the database" for techniques to change the domain name in the database.  You could dump the whole database out as a text file and search and replace that way or you could use the queries shown in the article.  Either step should restore Dashboard access when run on the wp_options table and the rest of what you describe would either be handled by the other search and replace steps or by disabling and re-enabling permalinks.
0
 
ImpressionistAuthor Commented:
Thanks, I will try that now.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now