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. Handling Multiple Domain 301 Redirects on Single htaccess file

    Handling Multiple Domain 301 Redirects on Single htaccess file

    Intermediate & Advanced SEO
    2 2 291
    • 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.
    • Erik-M
      Erik-M last edited by

      Hello,

      I have a client that currently that has 9 different markets with different sub-domains on one server (aka one htaccess file.). All the sites have very similar Navigation and some of them contain the same products aka same URLs. The site is using Magento CMS and I'm trying to figure out how to redirect some products that have been removed from one of the stores. The problem I'm running into is when I try to redirect one store url, it redirects all the site's URLs.

      Example

      • http://store.domain1.com/
      • http://store.domain2.com/

      I'd like to redirect http://store.domain1.com/old-url.html to http://store.domain1.com/new-url.html without making http://store.domain2.com/old-url.html redirect.

      I've literally been pulling out my hair trying to figure this one out but have had no luck. Does anybody have any ideas on how I could do this without having the sites redirect or create any loops?

      Any wisdom from you apache experts would be greatly appreciated.

      Thanks, Erik

      1 Reply Last reply Reply Quote 0
      • Andy.Drinkwater
        Andy.Drinkwater last edited by

        Hi Erik,

        How are you trying to do the redirect? Can you share the code? I'm not an .htaccess guru, but some of the guys here are.

        -Andy

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • 301 Redirects for Multiple Language Sites in htaccess File
          GFD_Chris
          GFD_Chris
          0
          2
          120

        • Have You 301 Redirected Domain A to Domain B ?
          Nayotanguyen
          Nayotanguyen
          0
          13
          491

        • Consolidating Multiple Domains into A Single Domain
          dbaxa-261338
          dbaxa-261338
          1
          6
          1.7k

        • 301 Redirecting Multiple Domains
          IM_Learner
          IM_Learner
          0
          2
          161

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

        • 301 Redirecting multiple domains to brand new domain
          SEODinosaur
          SEODinosaur
          0
          13
          1.7k

        • Multiple domains expiring that have 301 redirects to my primary domain. Am I in trouble?
          absoauto
          absoauto
          0
          3
          416

        • 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

        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