undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. Research & Trends
  3. White Hat / Black Hat SEO
  4. How to 301 redirect from old domain and their pages to new domain and pages?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

How to 301 redirect from old domain and their pages to new domain and pages?

White Hat / Black Hat SEO
2
9
7.8k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • andzon
    andzon last edited by Aug 21, 2014, 5:45 AM

    Hi i am a real newbie to this and i hope for a guide on how to do this. I seen a few moz post and is quiet confusing hopefully somebody able to explain it in layman terms to me.

    I would like to  301 redirect this way, both website contain the same niche.

    oldwebsite.com > newwebsite.com

    and also its pages.....

    oldwebsite.com/test >newwebsite.com/test

    So my question here is i would like to host my old domain and its pages in my new website hosting in order to redirect to my new domain and its pages

    how do i do that? would my previous page link overwrite my new page link? or it add on the juice link?

    Do i need to host the whole old domain website into my new hosting in order to redirect the old pages?

    really confusing here, thanks!

    1 Reply Last reply Reply Quote 0
    • andzon
      andzon @masoudfatemi last edited by Aug 21, 2014, 7:34 AM Aug 21, 2014, 7:34 AM

      i tried pasting that code there and change the old domain and new domain but it doesnt work

      1 Reply Last reply Reply Quote 0
      • masoudfatemi
        masoudfatemi last edited by Aug 21, 2014, 6:55 AM Aug 21, 2014, 6:55 AM

        Yes. you should move your contents to your new host and redirect your old domain to new one.

        andzon 1 Reply Last reply Aug 21, 2014, 7:34 AM Reply Quote 0
        • andzon
          andzon @masoudfatemi last edited by Aug 21, 2014, 6:53 AM Aug 21, 2014, 6:53 AM

          by parking the domain in the new hosting, all my previous pages will be gone right? unless i move everything from the old server to the new one? so i can redirect those pages to my new one too

          1 Reply Last reply Reply Quote 0
          • masoudfatemi
            masoudfatemi last edited by Aug 21, 2014, 6:44 AM Aug 21, 2014, 6:44 AM

            Yes. Simply park your domain on your new hosting and redirect it using this code.

            andzon 1 Reply Last reply Aug 21, 2014, 6:53 AM Reply Quote 0
            • andzon
              andzon @masoudfatemi last edited by Aug 21, 2014, 6:38 AM Aug 21, 2014, 6:38 AM

              do we need to keep this redirect permanently? for example to keep the hosting on in order for it to redirect it to my new site.

              1 Reply Last reply Reply Quote 0
              • masoudfatemi
                masoudfatemi last edited by Aug 21, 2014, 6:23 AM Aug 21, 2014, 6:23 AM

                yes; all of your old links move to new domain without hurting your SEO. Its a permanent redirection called 301.

                andzon 1 Reply Last reply Aug 21, 2014, 6:38 AM Reply Quote 0
                • andzon
                  andzon @masoudfatemi last edited by Aug 21, 2014, 6:21 AM Aug 21, 2014, 6:21 AM

                  by using this code

                  Options +FollowSymlinks
                  RewriteEngine On
                  RewriteCond %{HTTP_HOST} ^olddomain.com [NC]
                  RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]

                  how would it affect my seo? would it merge from the old link to the new link?

                  1 Reply Last reply Reply Quote 0
                  • masoudfatemi
                    masoudfatemi last edited by Aug 21, 2014, 5:51 AM Aug 21, 2014, 5:51 AM

                    Hi

                    its better to ask instead of not asking 🙂

                    First, you should host your old domain on your new site and use this htaccess code to redirect 301 all your urls to new domain(don't forget to change newdomain.com and yourdomain.com with your new and old site):

                    Options +FollowSymlinks
                    RewriteEngine On
                    RewriteCond %{HTTP_HOST} ^olddomain.com [NC]
                    RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]

                    RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC]
                    RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]

                    then you should submit a request in webmaster tools > change of address part to move your site authority completely.

                    andzon 1 Reply Last reply Aug 21, 2014, 6:21 AM Reply Quote 0
                    • 1 / 1
                    1 out of 9
                    • First post
                      1/9
                      Last post

                    Got a burning SEO question?

                    Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                    Start my free trial


                    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.

                    • See all categories

                    Related Questions

                    • AliMac26

                      Spam Score & Redirecting Inbound Links

                      Hi, I recently downloaded a spreadsheet of inbound links to my client sites and am trying to 301 redirect the ones that are formatted incorrectly or just bad links in general (they all link to the site domain, but they used to have differently formatted urls on their old site, or the link URL in general has strange stuff on it). My question is, should I even bother redirecting these links if their spam score is a little high (i.e. 20-40%)? it already links to the existing domain, just with a differently formatted URL. I just want to make sure it goes to a valid URL on the site, but I don't want to redirect to a valid URL if it's going to harm the client's SEO. Also not sure what to do about the links with the --% spam score. I really appreciate any input as I don't have a lot of experience with how to deal with spammy links.

                      White Hat / Black Hat SEO | Jan 24, 2020, 1:36 AM | AliMac26
                      0
                    • Boodreaux

                      New Flurry of thousands of bad links from 3 Spammy websites. Disavow?

                      I also discovered that a website www.prlog.ru put 32 links to my website.  It is a russian site.  It has a 32% spam score. Is that high? I think I need to disavow. Another spammy website link has spam score of 16% with with several thousand links. I added one link to the site medexplorer.com 6 years ago and it was fine. Now it has thousands of links. Should I disavow all three?

                      White Hat / Black Hat SEO | Aug 9, 2018, 8:29 AM | Boodreaux
                      0
                    • e.wel

                      Old subdomains - what to do SEO-wise?

                      Hello, I wanted the community's advice on how to handle old subdomains. We have https://www.yoursite.org. We also have two subdomains directly related to the main website: https://www.archive.yoursite.org and https://www.blog.yoursite.org. As these pages are not actively updated, they are triggering lots and lots of errors in the site crawl (missing meta descriptions, and much much more). We do not have particular intentions of keeping them up-to-date in terms of SEO. What do you guys think is the best option of handling these? I considered de-indexing, but content of these page is still relevant and may be useful - yet it is not up to date and it will never be anymore. Many thanks in advance.

                      White Hat / Black Hat SEO | Oct 16, 2018, 7:05 AM | e.wel
                      0
                    • kamishah

                      Is domain redirection a good method for SEO?

                      I have a question and need suggestion from you guys. I’ve searched for my question on Google but don’t get exact information what I need. Maybe I can’t search perfectly.
                      Let me explain my confusion:
                      I’ve checked backlink profile of a website. He is not using his main domain while doing comment backlink. He put his another domain while doing comment backlink. The another domain redirect to the main domain. Why he use another domain while doing comment backlink?
                      Is it helpful to get better rank on Google? For example: My Main Domain = solutionfall.com
                      Another Domain= xyz.com (It redirect to solutionfall.com)
                      He just uses xyz.com while doing comment backlink. Thank You so much  

                      White Hat / Black Hat SEO | Dec 22, 2017, 1:37 PM | kamishah
                      1
                    • vtmoz

                      Page title optimisation - Does suffix keywords matters?

                      Hi Moz community, We can see in many of the page titles; "brand & keyword" go after every topic like..... "best tiles for kitchen | vertigo tiles". Do Google count this suffix as any other word in page title or give low preference just because it has been repeated across every single page? What if the "keyword" is repeated with topic and brand name as well. I mean which one of the below 2 page titles gonna workout better in correlation with keyword and website authority ? best tiles for kitchen | vertigo tiles best tiles for kitchen | vertigo Thanks

                      White Hat / Black Hat SEO | Apr 5, 2017, 3:09 AM | vtmoz
                      0
                    • RizwanAkbar

                      Dfferent domains on same ip address ranking for the same keywords, is it possible?

                      Hello, I want to ask if two domains which r hosted on the same server and have the same ip ( usually happens with shared hosts ) tries to rank for the same keywords in google, does the same ip affects them or not.

                      White Hat / Black Hat SEO | Feb 3, 2016, 9:04 AM | RizwanAkbar
                      0
                    • remkoallertz

                      Acquire domains to boost yours, how to redirect an acquired domain

                      What is the best way to redirect for best SEO benefits? Examples: glaspunt.nl -> glas.nl fietstassen.eu -> loodgieter.nl Any technical information how to (root) redirect for best SEO practices?

                      White Hat / Black Hat SEO | Jan 12, 2015, 5:21 AM | remkoallertz
                      0
                    • THB

                      Closing down site and redirecting its traffic to another

                      OK - so we currently own two websites that are in the same industry. Site A is our main site which hosts real estate listings and rentals in Canada and the US. Site B hosts rentals in Canada only. We are shutting down site B to concentrate solely on Site A, and will be looking to redirect all traffic from Site B to Site A, ie. user lands on Toronto Rentals page on Site B, we're looking to forward them off to Toronto Rentals page on Site A, and so on.  Site A has all the same locations and property types as Site B. On to the question: We are trying to figure out the best method of doing this that will appease both users and the Google machine.  Here's what we've come up with (2 options): When user hits Site B via Google/bookmark/whatever, do we: 1. Automatically/instantly (301) redirect them to the applicable page on Site A? 2. Present them with a splash page of sorts ("This page has been moved to Site A.  Please click the following link <insert anchor="" text="" rich="" url="" here="">to visit the new page.").</insert> We're worried that option #1 might confuse some users and are not sure how crawlers might react to thousands of instant redirects like that. Option #2 would be most beneficial to the end-user (we're thinking) as they're being notified, on page, of what's going on.  Crawlers would still be able to follow the URL that is presented within the splash write-up. Thoughts?  We've never done this before.  It's basically like one site acquiring another site; however, in this case, we already owned both sites.  We just don't have time to take care of Site B any longer due to the massive growth of Site A. Thanks for any/all help. Marc

                      White Hat / Black Hat SEO | Mar 14, 2013, 5:54 PM | THB
                      0

                    Get started with Moz Pro!

                    Unlock the power of advanced SEO tools and data-driven insights.

                    Start my free trial
                    Products
                    • Moz Pro
                    • Moz Local
                    • Moz API
                    • Moz Data
                    • STAT
                    • Product Updates
                    Moz Solutions
                    • SMB Solutions
                    • Agency Solutions
                    • Enterprise Solutions
                    Free SEO Tools
                    • Domain Authority Checker
                    • Link Explorer
                    • Keyword Explorer
                    • Competitive Research
                    • Brand Authority Checker
                    • Local Citation Checker
                    • MozBar Extension
                    • MozCast
                    Resources
                    • Blog
                    • SEO Learning Center
                    • Help Hub
                    • Beginner's Guide to SEO
                    • How-to Guides
                    • Moz Academy
                    • API Docs
                    About Moz
                    • About
                    • Team
                    • Careers
                    • Contact
                    Why Moz
                    • Case Studies
                    • Testimonials
                    Get Involved
                    • Become an Affiliate
                    • MozCon
                    • Webinars
                    • Practical Marketer Series
                    • MozPod
                    Connect with us

                    Contact the Help team

                    Join our newsletter
                    Moz logo
                    © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy

                    Looks like your connection to Moz was lost, please wait while we try to reconnect.