Migration to New Domain - 301 Redirect Questions
-
My client is migrating their site to a new domain. I just did a big redesign, including URL structure change, and 301s from old URLs to new URLs. Now they want a new name, so we're moving forward with a new domain name.
However, we're going to keep the site on the current domain while we ease customers into the new name. During that time, I'm going to be building links to the new domain name and 301 Redirecting that new one to the current domain name. Then, once we migrate the site to the new domain name, I'm then going to redirect the current domain name to the new domain name.
So, my question(s) is/are:
- Is the above process the best way to use 301 redirects to to build links to the new domain while we transition everything?
- Should I (or can I) do 3 redirects from the oldest URLs, to the current URLs then to the new URLs?
- General question... I can't seem to find this anywhere online, but what is the best practice for what order URLs should be in in the htaccess file?
Thanks!
-
Hi Tom,
Thanks so much for the thorough answer. Very, very helpful. And thank you for the article about execution order... I've been looking for something like that for a while!
-
Hi there,
Question 1: I'll come back to that...
Question 2: You can use redirect chains but you shouldn't. Although a desktop browser will redirect through the chain quite quickly (providing there are no mistakes), a mobile browser takes 0.6 seconds to get a connection to a page, so each redirect quickly adds up to poor user experience for any mobile users. And although Google has stated it’s crawler does well to deal with 1 or 2 redirects, it can come across problems with longer redirect chains and you could see your final page not getting crawled from the redirect as it should. Both Yahoo and Bing have stated their crawlers do not perform well when it comes to redirect chains. As you make the transition to the new domain you should update your original redirects to send the visitor to the correct page after the first redirect.
Question 3: Best practise for redirects is to specify the more specific rules first, if you're using regex with redirectmatch or rewrite rule, then you'll want to put them after your more specific oldpage.html to newpage.html, so that the more specific rule is given the chance to match before the regular expression is given a more broad chance to match. And finally add an 'if all else fails' rule at the bottom to redirect all requests that were not dealt with by a previous directive.
There's a nice post here on execution order in your htaccess if you'd like to give it a read:http://www.adrianworlddesign.com/Knowledge-Base/Web-Hosting/Apache-Web-Server/Execution-order
Back to Question 1:
If you're choosing not to follow Daniels advice and make the change all at once, you can 301 the new sites backlinks into the existing site, and 301 the old URL structure to the new URLs. But when you do implement the change, you'll want to modify all of your existing redirect to point to the final page the user should end up at, and not force them through a maze of redirects. Then you can then just remove the redirect from the new site, and have those users land on the pages the new links you built are pointing at. Don’t forget Google takes time recrawl, index and ‘trust’ new redirects and attribute all PR and SEO juice to the correct pages.
If at any point you plan on having the same content live on both domains without a redirect in place it would be best practise to use the rel=canonical link attribute in your to signal to google which is the preferred version on content to show in SERPs.
Hope that helps give a bit more information,
Tom
-
The plan has been thoroughly thought out and definitely needs to be implemented... that's why I came to this forum to ask a technical question. The branding issue has already been resolved.
It's a technical question because it's specifically about 301 redirects and the best practices when implementing them in this particular situation.
Thanks for your advice, but it didn't answer my question.
-
Ummm, this isn't what you asked....
...but is it out of the question to re-consider this:
"However, we're going to keep the site on the current domain while we ease customers into the new **name."**This is a mistake, IMHO, and you should do everything possible to persuade the client to re-think the plan.
Best practice, as I'm sure you know, is to do page-level redirects from each page on the old site to its closest corresponding page on the new site.
Is the company name changing...or just the domain name?
In any event, I can't see an elegant way of doing what you propose...only of mitigating the damage and confusion that will inevitably result.
I'm sure others, more technically knowledgable than I, can weigh in on damage control. But why damage yourself at all?
I don't think this is really a technical SEO issue at all.
It's a fundamental marketing and branding issue, IMHO. So much better to zoom up to 30,000 feet and address the larger issue.
**Bottom line: the way to make the change is, well, to make the change! All at once. **
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
-
301 Redirection, then 200 status for specific webpage
Hello everyone, Would like to seek your advice. Our company classified web pages currently set 301 redirection for product listing (expired) -> relevant category pages. At the same time, remove this webpage URL from the sitemap as well. In some cases, users reactivated the expired ads. In this case, the page will become status 200 again, also re-included in the sitemap again. Wondering if Search engines able to pick up and index the same webpage again? Thanks in advance!
Technical SEO | | raysamu
Raymond0 -
How to 301 trailing URLs to new domain home page - wildcard?
How would I add a redirect rule so all old domain URLs redirect to a new domain? All the old pages no longer exist on a new website. The domains have been through several CMS platforms, so it would be unnecessary to recreate them. Problem is, they're indexed in search engines from the past 10 years, so it's causing a lot of 404s. Example: search "NARI Tampa Bay" and you'll find 2 old domains: nari-tampabay.com & nari-tampabay.org. The new domain is naritb.org Those 2 old domains are now pointed to the same nameservers as the new and listed as parked domains. Here's the current rules in htaccess: <code>RewriteEngine On RewriteCond %{HTTP_HOST} ^nari-tampabay.org [NC,OR] RewriteCond %{HTTP_HOST} ^www.nari-tampabay.org [NC] RewriteRule ^(.*)$ https://www.naritb.org/$1 [L,R=301] RewriteEngine On RewriteCond %{HTTP_HOST} ^nari-tampabay.com [NC,OR] RewriteCond %{HTTP_HOST} ^www.nari-tampabay.com [NC] RewriteRule ^(.*)$ https://www.naritb.org/$1 [L,R=301]</code>
Technical SEO | | CartoMark0 -
URL structuring / redirect question
Hi there, I have a URL structuring / redirect question. I have many pages on my site but I set each page up to fall under one of two folders as I serve two unique markets and want each side to be indexed properly. I have SIDE A: www.domain/FOLDER-A.com and SIDE B: www.domain/FOLDER-B. The problem is that I have a page for www.domain.com and www.domain/FOLDER-A/page1.com but I do NOT have a page for www.domain/FOLDER-A. The reason for this is that I've opted to make what would be www.domain/FOLDER-A be www.domain.com and act the primary landing page the site. As a result, there is no page located at www.domain/FOLDER-A. My WordPress template (Divi by Elegant Themes) forced me to create a blank page to be able to build off the FOLDER-A framework. My question is that given I am forced to have this blank page, do I leave it be or create a 302 or 307 redirect to www.domain.com? I fear using a 301 redirect given I may want to utilize this page for content at some point in the future. This isn't the easiest post to follow so please let me know if I need to restate the question. Many thanks in advance!
Technical SEO | | KurtWSEO0 -
301 redirects without .htaccess
I have a client that recently moved from an old ZenCart e-commerce site to Volusion. The domain name did not change. We need to redirect a bunch of the old URLs; however, Volusion's redirect tool does not work for URLS with "?" . The old ZenCart structure is: http://www.mydomain.com/index.php?main_page=product_info&products_id=563 Volusion is a hosted platform and we do not have access to the .htaccess file. Any suggestions on a workaround? Thanks!Nancy <colgroup><col width="960"></colgroup>
Technical SEO | | NancyVPS
| |0 -
Redirecting Parked Domain
I just recently switched hosting. We have 3 domains and 1 being the main domain. Right now they are set up as parked domains. Can I redirect the parked domains under my main websites .htaccess file ? I am just worried that good we will get hit for duplicate content, even though technically the content is only on our main domain. right now if I type in my parked domains in Google, they appear in search. The site is all hand coded and not using a CMS.
Technical SEO | | hfranz0 -
301 redirect domain to page on another domain
Hi, If I wanted to do a 301 permanent redirect on a domain to a page on another domain will this cause any problems? Lets say I have 4 domains (all indexed with content), I decide to create a new domain with 4 pages, one for each domain. I copy the content from the old domains to the relevant page on the new domain and set it live. At the same time as setting the new site live I do a 301 permanent redirect on the 4 domains to the relevant pages on the new domain. What happens if Google indexes the new site before visiting the redirected domains, could this cause a duplicate content penalty? Cheers
Technical SEO | | activitysuper0 -
Rel - canonical vs 301 redirect
I have multiple product pages on my site - what is better for rankings in your experiance? If I 301 the pages to 1 correct version of the product page - or if I rel caanonical to the one correct page?
Technical SEO | | DavidS-2820610 -
How do 301 redirects affect rankings?
Scenario: example.com/red-shoes gets 301 redirected to example.com/brown-boots because we have stopped selling red shoes and now only sell brown boots (which is a fairly new page with no authority). the red-shoes page ranked well for "red shoes" and "footwear". Will Google still index and show the red-shoes url in the SERPs? Will the "red shoes" and "footwear" keywords still rank well? Or does the redirected/new boots page need to properly support these keywords? The boots page has inherited the juice from the shoes page, but how does it help the boots page rank well? Only for keywords that both pages targeted, like a general "footwear" type keyword? Thanks in advance!
Technical SEO | | akim260