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. Technical SEO Issues
    4. 301 redirects

    301 redirects

    Technical SEO Issues
    5 2 255
    • 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.
    • vibelingo
      vibelingo last edited by

      Hi,

      I am a working on a new web site, and I want to redirect all the urls of another site (on a different host) to this one. According to both hosts it is "impossible" to do this for all urls. I don't believe that to be the case, but how do I do this? And, should both sites be hosted on the same server first?

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

        So are you planning on redirecting examplesitea.com -> examplesiteb.com?

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

          Hi, that's correct. I want to redirect all sub pages from site A to site B as well.

          DMGoo 1 Reply Last reply Reply Quote 0
          • DMGoo
            DMGoo @vibelingo last edited by

            Ok, well if you are using linux apache then you can use the following rule in your htaccess file provided you are keeping your URL structures the same on the new site as the old site:

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

            If you are using new urls you will have to create rules for each individual URL which can be done using an excel spread sheet which i can provide you with.

            vibelingo 1 Reply Last reply Reply Quote 0
            • vibelingo
              vibelingo @DMGoo last edited by

              thanks, I'll give it a shot!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • 301 Redirects
                imoprojects
                imoprojects
                0
                7
                138

              • 301 redirects
                nyc-seo
                nyc-seo
                0
                3
                194

              • Where is the 301 redirect?
                JarnoNijzing
                JarnoNijzing
                0
                2
                189

              • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
                Chris-CA
                Chris-CA
                0
                5
                456

              • 301 Redirect
                Uramark
                Uramark
                0
                3
                318

              • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
                Room214
                Room214
                0
                7
                1.1k

              • 301 Redirect
                Paul78
                Paul78
                0
                6
                637

              • 301 redirects
                IM_Learner
                IM_Learner
                0
                2
                759

              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