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. Intermediate & Advanced SEO
    4. Best Approach to Redirect One Domain to Another

    Best Approach to Redirect One Domain to Another

    Intermediate & Advanced SEO
    3 3 218
    • 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.
    • RPD
      RPD last edited by

      So I'm about to migrate one domain to another.  Lets say I'm migrating boo.com to foo.com.  Boo.com has good organic traffic & has some really well ranked pages.  For this reason (I think) I want to send that traffic to some where other than the foo.com homepage.  Perhaps a catered landing page.  My question is can I redirect some of the specific pages on boo.com to a landing page on foo.com & then redirect the delta to foo.com's homepage? Or am a risking not fully transferring the full credit of one domain to another if I take that approach & therefore I should just redirect one domain to the other in its entirety?

      Thanks,

      Rich

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

        Hmm... my best guess is that if the content remains the same, that means that you have the same contents on boo.com and foo.com, then just simply do a page by page redirection, that will carry as many value as possible to the new pages.

        However, you if you do not have the same pages available on both domains, then there are a couple of things you can do:

        • Not the exact same content on the new domain: redirect to what you think is the best match.
        • No similar content on the new domain:
                                                                 - Option 1: Redirect to a page (sort of a landing page) showing similar pages that the user might be interested in.
                                                                 - Option 2: Redirect to a landing page or homepage.

        Hope that helps!

        1 Reply Last reply Reply Quote 2
        • TomVolpe
          TomVolpe last edited by

          Hi Rich,

          Elaborating on FedeEinhorn’s answer, if the page structure is the same you could just redirect all requests to the same URI on your new domain, as he stated. You could do this very easily with a .htaccess file on the root folder of your old domain (providing you’re running an apache webserver like most people). To redirect using regular expressions and capture groups we can use the RedirectMatch directive, which would look like this:

          RedirectMatch 301 ^(.*)$ http://www.newsite.com$1

          As simple as that, you’ve redirected all existing pages to the same page on the new domain. If you haven't used this before, here's a brief look at how that works for you:

          Firstly, RedirectMatch simply tells apache we’re using the RedirectMatch directive from mod_alias.

          301 specifies a 301 SEO friendly redirect which passes all that lovely SEO juice to your new site.

          ^(.*)$ is our regular expression. It states, from the start of the requested URI (^) start capturing the request (using the brackets to show what we want to capture), capture it all (with . meaning any character or symbol and the * meaning 0 or more of the preceding . , which will lead to everything being caught by our capture group (the brackets). And the $ meaning the end of the requested URI.

          The final part of this redirect is specifying the page to redirect to, but as we have captured the request in the previous part, we use $1 to append our first capture (only capture in this distance) to the end of our new domain.

          If you have completely changed your site, you may wish to redirect all requests to your homepage or another page, it is as easy as modifying the previous code to redirect without appending our capture to the end of your redirection target, so this would be acceptable:

          RedirectMatch 301 ^(.*)$ http://www.newsite.com

          But since we don’t need to use anything from the requested URI, we should really remove the brackets (the capture group) for the sake of tidiness, resulting in:

          RedirectMatch 301 ^.*$ http://www.newsite.com

          You could use a mixture of these 2 code, for instance if your blog posts are all identical but your main site pages have all changed - this code would redirect all pages starting with /blog/ to their double on the new domain, but redirect all other pages to a /we-have-moved/ landing page:

          RedirectMatch 301 ^(/blog/.*)$ http://www.newsite.com$1

          RedirectMatch 301 ^.*$ http://www.newsite.com/we-have-moved/

          Hope that's useful,

          Tom

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • When domain a buys domain b (whose links direct to c), does domain a has links redirecting to domain c ?
            Nozzle
            Nozzle
            0
            2
            52

          • Is there a way to forward banklink benefits from one domain to another without a redirect?
            OCN
            OCN
            0
            7
            105

          • We are switching our CMS local pages from a subdomain approach to a subfolder approach. What's the best way to handle this? Should we redirect every local subdomain page to its new subfolder page?
            Ray-pp
            Ray-pp
            0
            4
            123

          • How would I be able to move content from one domain to another?
            UplinkSpyder
            UplinkSpyder
            0
            6
            78

          • Redirect one store to another...
            Freelancer13
            Freelancer13
            0
            6
            299

          • 301 redirect from one domain to other domain, How To?
            ThompsonPaul
            ThompsonPaul
            0
            9
            511

          • Multiple domain level redirects to unique sub-folder on one domain...
            blackrails
            blackrails
            0
            8
            451

          • Where do I redirect a domain to strengthen another domain?
            JCorp
            JCorp
            0
            3
            508

          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