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 redirect via htaccess question

    301 redirect via htaccess question

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

      So, I have www.sitea.com and www.siteb.com

      I want to redirect SOME pages from www.sitea.com to www.siteb.com (example: www.sitea.com/plugins/wp/ to www.siteb/wp/ etc ) and the rest of any pages left, to the homepage of www.siteb.com.

      It is something with conditions... any help, please?

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

        Have you tried using a .htaccess file to redirect individual URLs and then a sitewide one for the others?

        If it doesn't let you do this at the same time, redirect the individual pages first, wait until the SEs have picked up on the redirect and then redirect the rest of the site. I would have thought you should be able to do both at the same time though.

        jasmin28 1 Reply Last reply Reply Quote 1
        • jasmin28
          jasmin28 @Audiohype last edited by

          @Ben,

          There are around 150 pages that have a match on the new site (categories like Self Improvement, Science etc), I can redirect these like:

          redirect 301 /category1/ http://www.newdomain.com/category1/

          ...

          ...

          But, if I do this, the rest of the pages won't have a redirect (there are like 500 various indexed query pages that don't have a mirror on the new domain).

          So, let's say I redirect what it has a corespondent on the new domain, I redirect the homepage, about us, contact etc.

          But... what will happen with the urls that don't have a mirror?

          I was thinking to redirect everything except the 1:1 correspondents to the new website's homepage... is that a wise idea? Or maybe a 404 custom page would be more indicated?

          Thanks.

          Audiohype 1 Reply Last reply Reply Quote 0
          • Audiohype
            Audiohype @jasmin28 last edited by

            Yes I would do that, it's the best solution, redirect every corresponding page to the new one, and redirect the rest of the pages to the homepage / most relevant area. I can't see any issues with doing it this way.

            404's won't transfer any of the weight over to the new site so would be a waste IMO.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • To redirect or not to redirect, that is the question
              CommT
              CommT
              0
              5
              126

            • How to redirect an url in .htaccess when "redirect 301" doesnt work
              WilliamKammer
              WilliamKammer
              0
              5
              173

            • .htaccess 301 Redirect Help! Specific Redirects and Blanket Rule
              LynnPatchett
              LynnPatchett
              0
              3
              3.1k

            • 301 Redirect htaccess
              Christy-Correll
              Christy-Correll
              0
              8
              256

            • How to set up 301 redirect for URL with question mark
              Ben_Alvord
              Ben_Alvord
              0
              2
              3.6k

            • 301 Redirect question
              webseoservices
              webseoservices
              0
              4
              438

            • Why isnt my crawl results showing a 301 redirect even though I have a 301 rewrite in my .htaccess file?
              PCTechGuy2012
              PCTechGuy2012
              0
              8
              462

            • 301 Redirect using rewrite rule in .htaccess
              AlanMosley
              AlanMosley
              0
              15
              1.4k

            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