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. Order and multiple match when 301 redirect ?

    Order and multiple match when 301 redirect ?

    Intermediate & Advanced SEO
    3 3 284
    • 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.
    • 2MSens
      2MSens last edited by

      Hi,

      I'm migrating a single domain to a multiple domain for each language, using apache redirections:

      Redirect 301 /partners http://www.itris-automation.com/
      Redirect 301 /partner-si http://www.itris-automation.com/system-integrators-partners
      Redirect 301 /partner-institute http://www.itris-automation.com/institutional-partners
      Redirect 301 /fr/ http://www.itris-automation.fr/
      Redirect 301 /fr/support http://www.itris-automation.fr/support
      Redirect 301 /privacy?lang=fr http://www.itris-automation.fr/politique-de-confidentialite

      Redirect 301 /de/plc-converter http://www.itris-automation.de/plc-converter
      Redirect 301 /de/services http://www.itris-automation.de/
      Redirect 301 /de/plc-quality http://www.itris-automation.de/sps-qualitat

      ....

      However it doesn't work properly: For example automationsquare.com/privacy?lang=fr redirect to http://www.itris-automation.com/privacy instead of http://www.itris-automation.fr/politique-de-confidentialite

      Does the order of the redirect has an influence? Am I missing something? I've seen that the command [L] can be useful to avoid mismatch?

      Thanks, Best,

      • Benoit.
      1 Reply Last reply Reply Quote 0
      • LesleyPaone
        LesleyPaone last edited by

        Try putting the privacy redirect first. But yes, the order makes a difference. A htaccess file processes redirects until a match is made, then it stops processing them.

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

          Apache reads the .htaccess from top to bottom, so it's good to keep that in mind.

          If I had to guess, I'd say you have more 301s than just those in your .htaccess. A rule above that is likely conflicting with that specific redirect.

          If you have a rule redirecting everything from that subdirectory without the French URL parameter, and it's before the rule in question, then this rule will never catch anything.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • 301 Redirects... Redirect all content at once or in increments?
            Koki.Mourao
            Koki.Mourao
            0
            6
            175

          • Multiple 301 Redirect Query
            PeteC12
            PeteC12
            0
            3
            82

          • Multiple 301 redirects and old site content appearing in Google results
            Andy.Drinkwater
            Andy.Drinkwater
            0
            9
            376

          • Multiple 301 redirects for a HTTPS URL. Good or bad?
            rishil
            rishil
            0
            6
            11.4k

          • How to use a 301 Redirect when the first 301 Redirect is not the same as what's indexed?
            PatriotOutfitters81
            PatriotOutfitters81
            0
            3
            66

          • Google Re-Index or multiple 301 Redirects on the server?
            JustinTaylor88
            JustinTaylor88
            0
            4
            555

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

          • 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