301 Redirect from Old Domain to New Domain
-
I am building a new website and I plan to 301 Redirect my Old Domain (olddomain.com) to a brand new Domain (newdomain.com) in the upcoming months.
To do this I was planning to update the htaccess file on both the old and new domains.
The htaccess file on the old domain would look to 301 redirect all pages on the old domain to the new domain. The htaccess file on the new domain would detail any specific URL redirects I want to implement (ie. olddomain.com/EXAMPLE/TEST will redirect to newdomain/TEST) - this will ensure link equity is retained and bounce rates are kept at a lower level.
Does this sound like the right approach?
Also, what do I need to do with the old domain going forward? Do I need to keep this forever in order for the 301 redirect to work or can I eventually just forward the domain to the new one permanently?
-
A page to page redirect from the old site to the new site is the ideal but you might cut corners by just redirecting those pages that are bringing you in search traffic and those that have external links to them. You don't need to put any redirects on the new site's .htaccess file, though. The traffic from the old site will already knows which page to request based on your changes to the old site's .htaccess file.
Best practice is to leave your 301 redirect in place is 180 days.
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
-
Redesign Just Starting - Should I Leave The Previous Incomplete Site or Setup A Temporary Holding Page and Redirect Previous URL'S?
Hi All I've picked up a new website project and wanted to ask about the best way to proceed with the current site during the development process. The current site is incomplete although it has been live for a while and has over 80 pages in the sitemap. Link to site https://tinyurl.com/ychwftup The business owner wants to take down the current site and simply add a landing page stating "new website coming soon". From an SEO perspective, am I better to keep the current site live until the new site is ready? Or would it not make any difference if I setup the landing page and add 301 redirects from each page in the sitemap to the landing page. Many Thanks In Advance For Any Assistance
Web Design | | ruislip180 -
Are slides how's etc the new Splash Pages?
[How did Moz know that my question was about this?!] I've just completed an audit of nearly 50 websites in the tourism industry and 90% had a slideshow, large image or video taking up more than the initial screen on the fairly large screened Chromebook that I'm using. I'm advising them all to ditch this and am often getting resistance from the site owners and their web developers. I know that these can be better optimized for page load speed, which is poor for most of these sites, especially on mobile devices; but from a usability standpoint, are these affective at drawing in users? Do users take the time to view these? Are they annoyed at always having to scroll down to see if there is anything else useful on the homepage? I think they are like the splash pages of the past: poor for usability and SEO. I've advised to at least make sure that the images are sized so the top of the page fits any screen (some of them do resize well for mobile devices, but maybe not laptops/desktops), include text with calls to action and click through to relevant content. I've been noting that they aren't media businesses selling images or videos, so they need to get their offerings to the top of the page so that users can see and engage more quickly. Anyone have any stats or experience on this? Thanks, Ann
Web Design | | anndonnelly0 -
Shutting down m. domain
hi, we are planning to shutdown the m.xyz.com domain and currently www.xyz.com domain made as responsive design, earlier, we used to redirect all the moble devices to m.xyz.com domain and in m.xyz.com all pages are canonical and pointing to www.xyz.com Few mistakes we have done during the launch of m.xyz.com (almost all 2 years back)
Web Design | | Rahim119
lot of pages created as there was no tag add canonical, and there are some pages where canonical was not added and sometimes it will show in the destop results as well what steps we need do for shutting down m. domain.. pls suggest in mobile webmaster as well0 -
New website and new domain
Hi, We have a domain with current e-commerce site on, about 5 years old. We have a new website being built with a different company and a new domain name. We are transferring our old domain over to new provider and 301'ing the domain to new domain. However, we can not take the current website with us, so we lose all our links/pages etc.. How important would it be to take a wrap of our current website to keep all the pages alive? Is there anything we can do so oldurl.com/brand/tshirt/ doesnt lose its rank? Can we 301 individual pages if we dont have the actual website? Just the domain name. Any help be great. Thanks
Web Design | | YNWA0 -
What is the code to 301 http to www in htaccess file on unix server
i want to 301 my http home page to www on a linux server and all my other redirects are set up similar to this in my htaccess file: redirect 301 /example-page.html http://www.example-page.html how do I 301 redirect: http://example.com to http://www.example.com I've tried all kinds of code recommended for an htaccess file on a linux server and nothing seems to work. Thanks for the help mozzers! Ron
Web Design | | Ron100 -
Setting a Preferred Domain
Should you set a preferred domain? www.domain.com or domain.com Does this influence your SEO strategy?
Web Design | | HMCOE0 -
Site Ranks on Page 1 - Would launching new site hurt that
Hello, I currently have a website ranking in the top 7 for my main keyword. The website was built in 2004 and is definitely outdated, yet still ranks very high and brings in business. If i launched a new site on this domain, what would happen to my rankings? Would they drop? would they rise? If i don't launch the new site, will this site eventually drop due to being old and outdated? Any advice would be helpful...
Web Design | | Prime850 -
Location in domain name but want to expand
my blog is ocpatentlawyer.com. The domain name has the OC letters in it. When los angeles internet users land on my blog, they don't click through to the contact page or pick up the phone to call me. Should i start a new blog with a LA focus then link to this new LA patent blog from my main OC blog? I'm hoping that the LA internet users who land on my OC blog will click through to the LA blog and feel as if I'm in their neighborhood. Should I leave my domain name the same but change the blog to something neutral such as XYZ patent attorney? The basic thing that I want to do is to convert the LA users from my oc blog. I'm unsure how to do it.
Web Design | | jamesjd70