Experience of moving to a new domain
-
Hi all
just wondering if anyone has ever had any experience / tips / advice.
moving from domain name a to b is well published all over the web and the practice is often discussed on here.
but my question is has anyone ever done moving the domain from a to b and then after x time move back to domain a.
i can't find any examples, notes anywhere on Google.
thanks in advance
-
Yes I have recently done something similar 2 times. One time for a local company which had a SEO targeting an geographically unsuitable service area for my client. It is a traffic school operating in a large city situated next to an even larger city. The SEO took a new domein xxxcity.nl and focused the keyword strategy on this as well. But how do the instructors pickup and drop off students in city A north and city B south within a hour or 90 minutes. Never going to happen 8 times a day on time. And it doesnt convert well either because people now this when the see an offer.
But I undid the city in the url part by copying the website enterely and placed a simple php script in the WordPress index.php file in the root. This replaces the domain for all request and redirects with a 301. The destination domain is the domain the client previously used.
// Permanent redirect of all PR from A > B
// Get http request headers for requests on old page
$uri = $_SERVER['REQUEST_URI'];// Get the path after the old domain to redirect to corresponding page on new
$url_path = parse_url($uri, PHP_URL_PATH);// drop the city from the url and go to new location
$location_new = 'http://www.xxxrijschool.nl' . $url_path;// send 301 and load destination url
header("HTTP/1.1 301 Moved Permanently");
header("Location: $location_new");exit();
?>The above script I place on the old domain A but only after copying the whole website to the new domain B. If it's a 1-on-1 copy then this script is places on A. Thats all. It will cost some PageRank to move 2 times for 1 page but the transfer starts in a few days and will be noticeable in 2 weeks or so. After 6-8 weeks it will mostly be moved and normalize from there on. If in between we optimize on-page and aquire good backlinks then it will turn the decline of rank and can outperform the old site in a matter of 8 weeks.
For larger and large site it's recommended that the time to live for DNS records is set to 5 minutes at least a week in advanced, This is recommended by google somewhere in the guide for transfering domains in webmaster tools I believe.
Hope this helps/
Gr Daniel
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Temporary Domain Changes
Hi All, Our development team needs to do a temporary site name change from www.sitename.com to new.sitename.com and then wants to return to www.sitename.com. They need to do this for the whole site due to how it's built with single sign on (SSO) and how certain post login pages utilize pre login pages and need to keep people logged in. This process is changing with a CMS upgrade and website and post login pages will be independent of the pre login pages moving forward. My question is what is the best way to manage this transition? Right now it seems like the best solution I've been able to work out with development is to reduce the domain shift down to one week and use 302 Redirects, don't index the new.sitename.com site, and for that week and take my lumps as they come from search. Looking for any other suggestion that may help marketing work with dev without casting blame on any teams for drops in organic traffic.
Intermediate & Advanced SEO | | dapacifi0 -
Keyword Rich Domain
We purchased a keyword rich domain name to use with an existing website. What is the best way to use this domain? Below are some thoughts, I welcome any input. Use this domain as an add-on to the main domain, but only have it load one page off the main domain? Would that cause duplicate content issues? Create a single static page of content for the domain (separate from main domain) Redirect domain to page on master domain, would we loose any benefits of the keyword rich domain? Thank you!
Intermediate & Advanced SEO | | idlwebinc0 -
Domain name change
Here's the scenario... Client has two domain names: domain.com - targeting one country (Australia) otherdomain.com - targeting all other countries Both have identical products, but different currencies (AU$ and US$). The problem (as most of you will know) is that without using a sub-domain or country-code top-level domains, Google has no idea which domain should be served for which domain. Furthermore, because the root domain is different, Google doesn't see any connection between the two - other than the fact they have identical products! My recommendation to the client is to change to: domain.com to domain.com.au otherdomain.com to domain.com Arguably, we could leave the second one alone. But I think it's better for the brand to use the same root domain for each. Obviously this means both will need to be redirected. Since NONE of the pages within the sites will change, do we need to redirect every page, or just the root domain? Any other risks or concerns we should know about?
Intermediate & Advanced SEO | | muzzmoz0 -
Using a Sub Domain as a Main Domain?
Hi, I'm working on a site at the moment and the sub domain is acting as the main domain. This occurred when the site was redesigned and built on a sub domain for testing but it was never moved to the main domain when it went live (a couple of years ago). So little or no pages are live on domain.com but all on sub.domain.com. It's a large company but they have very poor rankings. Would you recommend that they move the sub domain back into the root folder? Does this involve renaming/re-pointing URLs? Thanks Louise
Intermediate & Advanced SEO | | MVIreland1 -
Many New Urls at once
Hi, I have about 5,000 new URLs to publish. For SEO/Google - Should I publish them gradually, or all at once is fine? *By the way - all these URLs were already indexed in the past, but then redirected. Cheers,
Intermediate & Advanced SEO | | viatrading10 -
Revert to old domain w/ better DA/PA or stick with new one?
I switched from one domain to another because I wanted a domain that had our company name so it was more brand-y. However, the old domain had better DA/PA. Originally I set up a global 301 from the old to the new, but now I'm finding that I actually need to set up individual 301's from each URL of the old site, or at least from each page. The new domain is http://www.bohmkalish.com and the old domain was http://www.ssdlawcalifornia.com. However, I am using Wix so it looks like I can't always do URL-URL 301's, although I can redirect any URL to a page on the new website. The problem is that, in some cases, the content on the new site is different (or, for example, I can only link a particular blog post on the old site back to the new site's blog's main page). How closely do URLS/pages need to resemble each other for link juice to be transferred? Also, should I try to set up all these redirects manually or bite the bullet and go back to using the old domain? The problem is that I did a lot of beginner SEO junk for the new domain, like submitting to a few higher-quality directories, and getting our website on various industry resource sites, etc. I'd need to re-do this entirely if I go back to the old page. What do you think?
Intermediate & Advanced SEO | | BohmKalish1230 -
Subdomain and root domain
Hey Everyone, our page has multiple domains and I'm wondering how it affects search rankings today. I saw some stuff from almost a year ago, but I'm not sure if something has changed. We currently have our root domain "www.xyz.com" and started moving some pages over to a different sub-domain "web.xyz.com" because of usability and ease of adjusting content. How much will this affect our seo? Thanks!
Intermediate & Advanced SEO | | josh1230 -
Moving Code for Faster Crawl Through?
What are best practices for moving code into other folders to help speed up a crawling for bots? We once moved some javascript from an SEO's suggestion and the site suddenly looked like crap until we undid the changes. How do you figure our what code should be consolidated? What code do you use to indicate what has been moved and to where?
Intermediate & Advanced SEO | | siteoptimized0