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

        • How Can I Redirect an Old Domain to Our New Domain in .htaccess?
          brettmandoes
          brettmandoes
          0
          4
          3.6k

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

        • 301 redirecting staff Domain to Company Domain
          khi5
          khi5
          0
          5
          102

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

        • Mass 301 redirect from a sub-domain - using Joomla or htaccess
          JohnW-UK
          JohnW-UK
          0
          3
          674

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

        • Multiple 301 redirects considered a redirection chain?
          jmueller
          jmueller
          1
          16
          5.0k

        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