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. 301 entire site

    301 entire site

    Intermediate & Advanced SEO
    4 2 125
    • 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.
    • Atomicx
      Atomicx last edited by

      Is there a good 301 code snippet to change just the root domain but keep the ending extensions?

      I just bid on a domain that I think would be much better for me moving forward, but do not want to have to try going through thousands of pages to do their 301 individually

      My site is almost 4 yrs old. Well established and has a large fanbase. Several of our social networks are under the name of the new branded domain, hence part of the desire to switch.

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

        Very simple.  Find your .htaccess file  for the URL you want to redirect FROM and add a line like the following:

        Redirect 301 / http://www.example-site.com/

        Just change out your own destination URL of course.  Don't ignore that solo slash, that's key as well.

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

          And that will redirect

          domain.com/page1/ to domain2.com/page1/

          and domain.com/morefolder/evenmore/ to domain2.com/morefolder/evenmore/

          and do this for every page across the site?

          Ikusa 1 Reply Last reply Reply Quote 0
          • Ikusa
            Ikusa @Atomicx last edited by

            Exactly.  Assuming your directory site structure is the same, it will do a blanket redirect from one URL to the new one.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Redirecting an Entire Site to a Page on Another Site?
              photoseo1
              photoseo1
              0
              3
              50

            • Google Is Indexing my 301 Redirects to Other sites
              Keszi
              Keszi
              0
              4
              573

            • Multilingual Site and 301 redirection
              katemorris
              katemorris
              0
              5
              2.7k

            • 301 old site to new site?
              dynamyt100
              dynamyt100
              0
              6
              75

            • How is my 301 redirected site stealing rankings from the main site?
              TakeshiYoung
              TakeshiYoung
              0
              4
              127

            • Does this require site-wide 301 redirects?
              Grabapple
              Grabapple
              0
              6
              197

            • What happens when I redirect an entire site to an established page on another site?
              DennisSeymour
              DennisSeymour
              0
              4
              119

            • How to remove an entire site from Google?
              DaveSottimano
              DaveSottimano
              0
              4
              620

            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