The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. White Hat / Black Hat SEO
    4. How to do 301 from an old/closed site to a new site?

    How to do 301 from an old/closed site to a new site?

    White Hat / Black Hat SEO
    4 4 94
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tonf123123123123
      Tonf123123123123 last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • Xiano
        Xiano last edited by

        My first question is whether you have a copy of the old site or a site map? Secondly, was all the content optimised, e.g. did it all have sensible urls and live in a sensible directory structure?

        Ideally, however you do your redirects, you'd want to create a map of your required redirects. It could be that all the new content is going to be in the same location, but on the new URL (e.g. http://olddomain.com/directory/content -> https://newdomain.com/directory/content), in which case you could use .htaccess to simply forward to the new domain with the same path, or it could be that you're going to move everything about (e.g. http://olddomain.com/directory/content -> https://newdomain.com/new-directory/new-content-location)

        Should I re-build the old site first, later build the new site, and then make 301 redirections from the old site to the new site? Or I just build the new site and redirect all the links from old site to my new site?

        No need to rebuild the old site first, simply start your new site.

        1. How to do 301 correctly to transfer the seo authory in wordpress? Should I set the 301 redirections from my host or should I have to set it in .htaccess? Does anyone know the code?

        You could install a WordPress instance on the old domain and then use a plugin to manage your redirects if that's what you're more comfortable with, or you could do them using .htaccess.

        2. Should I set every link, every page, every .jpg link from the old site to new site's related address one by one?

        This is up to you. Depending upon the scale of your site, doing everything might be safest. However, if the old site was huge and you don't have a sitemap, that is going to take some serious time. I would probably use a tool to discover any existing links and then make sure I was redirecting them, while at the same time having a tool to catch any 404s for redirects I hadn't set up. (You could either give a 404 page or alternatively forward everything to the new homepage while still tracking). You could then add proper redirects for any relevant old pages that were still receiving traffic.

        3. There are some good backlinks for the old domain, but now all the old site's links are broken, how to deal with the old urls that the backlinks pointed to?

        I think that question is already covered above. 301 them to the new content on the new site.

        Hope that helps!

        1 Reply Last reply Reply Quote 1
        • effectdigital
          effectdigital last edited by

          **Top-line notes: **A few things can impact 301 redirects and stop them from transferring the full SEO authority across! If redirects chain or loop, that kills them. If you use the wrong kind of redirect like a 302, that will also stop the flow (even if it's a 301 to a 302, or a 302 to a 301). Content similarity can also stop SEO authority flowing across. If the page which the redirect is pointing to, is not content-similar to Google's last active cache of the URL which the 301 is coming from - again you will have problems. Note that I mean similar in machine terms, think Boolean string similarity (the mathematical % of similarity between two strings)

          If you as a human think it's similar, that's nice - but if it's factually mathematically dissimilar, you will probably lose out. This is to stop new content gaining SEO authority from old content, when it may be less useful. If the probability is high that new content is not that similar in %-terms, then Google would say - it's a risk for them to rank it. It should have to prove itself again

          "0.  Should I re-build the old site  first, later build the new site, and then make 301 redirections from the old site to the new site? Or I just build the new site and redirect all the links from old site  to my new site?"

          It would be better if your old site were live up until the 301s were initiated, but if you have already closed it and it has been closed for more than a couple of weeks, it's quite possible that putting it up again won't make much difference now (you may be too late on this one)

          **"1. How to do 301 correctly to transfer the seo authory in wordpress? **Should I set the 301 redirections from my host or  should I have to set it in .htaccess?  Does anyone know the code?"

          The code will vary as you should be doing 301s on a page-by-page basis. This can bloat your .htaccess file for a while, so it's better to implement the redirects via Nginx (pronounced "Engine-X") if you have access to that. It's much faster and doesn't cause so many problems

          "2. Should I set every link, every page, every .jpg link from the old site to new site's related address one by one?"

          For the main site pages you should, for the resources (images, CSS files) it's not mandatory. For stuff like paginated content, you would need flexible rules that translate the old URLs over to the new ones

          "3. There are some good backlinks for the old domain, but now all the old site's links are broken,  how to deal with the old urls that the backlinks pointed to ?"

          Again you just point the old pages to the pages on the new website which are the same, once you have rebuilt that content on the new site

          Really appreciate it if anyone may help me.

          Not a problem!

          1 Reply Last reply Reply Quote 0
          • seoelevated
            seoelevated last edited by

            In addition to the responses which have already been posted to your question, there is another way to go about this, frequently used. It's not necessarily "better", but might be a more feasible alternative for you.

            1. As long as you still own your old domain, then you could go into your DNS settings of the old domain (with your registrar/nameserver account), and set a simple pattern redirect to point all traffic from old.com/* to new.com/$1. Note that different domain services have different ways for you to specify this, but you are looking for whatever method preserves the file path from the request and appends it to the new domain.

            2. So, then if you've done #1 as above, you would then set up your 1:1 redirects for every old page on the new server. This has the disadvantage ofc reating a small "redirect chain", meaning every redirect will have 2 hops instead of just one. Which makes it slightly less optimal than one of the other solutions mentioned which would only have 1 hop. But, at the same time is has a feasibility advantage, and lets you maintain all of your redirects in one place.  But yes, you would want to redirect all of your old pages. You might not need to do all 1:1, if you have some patterns, because you can also use pattern redirects. And if you do, then those ones you might want to put back out in your DNS settings for the old domain, so they wouldn't have 2 hops.

            3. Technically, #1 and #2 should take care of #3. However, for the most valuable ones, you might also want to reach out to the sites and request an update. Just because fewer hops is more optimal. But technically a small chain of redirects should work.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Spam signals from old company site are hurting new company site, but we can't undo the redirect.
              VeroBrain
              VeroBrain
              1
              2
              58

            • Whether to use new domain or old ecommerce site domain that has been incomplete for a long time.
              BobGW
              BobGW
              0
              4
              103

            • What if a site has links from news sites with the same/similar content like a press release? is that ok?
              JaneCopland
              JaneCopland
              0
              4
              104

            • New Site Structure
              TomRayner
              TomRayner
              0
              2
              140

            • What's the best way to set up 301's from an old off-site subdomain to a new off-site subdomain?
              Nobody1560986989723
              Nobody1560986989723
              0
              4
              379

            • You're a SEO manager for a new company working on a new site. Where to?
              EGOL
              EGOL
              0
              9
              477

            • Possibly a dumb question - 301 from a banned domain to new domain with NEW content
              RyanKent
              RyanKent
              0
              4
              691

            • Would linking out to a gambling/casino site, harm my site and the other sites it links out to?
              Getz.pro
              Getz.pro
              0
              7
              9.8k

            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
            • Digital Marketers
            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 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy