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. I think I'm stuck in a 301 redirect loop

    I think I'm stuck in a 301 redirect loop

    Technical SEO Issues
    5 2 1.8k
    • 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.
    • Technical_Contact
      Technical_Contact last edited by

      Hi all, I'm trying to correct some of my duplicate content errors. The site is built on Miva Merchant and the storefront page, /SFNT.html, needs to be permanently redirected to www.mydomain.com

      This is what my .htaccess file looks like:

      #RedirectPermanent /index.html http://dev.mydomain.com/mm5/merchant.mvc?

      RewriteEngine On

      RewriteCond %{HTTP_HOST} !^dev.mydomain.com$ [NC]

      RewriteRule ^(.*) http://dev.emydomain.com/$1 [L,R=301]

      DirectoryIndex index.html index.htm index.php /mm5/merchant.mvc

      redirect 301 /SFNT.html http://dev.mydomain.com/

      RewriteCond %{QUERY_STRING} Screen=SFNT&Store_Code=MYSTORECODE [NC]

      When I use this code and navigate to http://dev.mydomain.com/SFNT.html the URL gets rewritten as http://dev.mydomain.com/?Screen=SFNT

      So I believe this is what's called a "redirect loop"....

      Can anyone provide any insight? I'm not a developer, but have been tasked with cleaning up the problems on the website and can use any input anyone is willing to offer.

      Thanks,

      jr

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

        Redirect Loop is when you create 2 opposite redirect rules.

        and basically your site will never load at al,l because the browser will time out

        did you try ?

        RedirectMatch 301 /STNT.html http://www.domain.com

        Technical_Contact 1 Reply Last reply Reply Quote 0
        • Technical_Contact
          Technical_Contact @wissamdandan last edited by

          I just tried adjusting as below and it still rewrites the URL to http://www.mydomain.com/?Screen=SFNT

          RedirectMatch 301 /SFNT.html http://dev.mydomain.com

          wissamdandan Technical_Contact 2 Replies Last reply Reply Quote 0
          • wissamdandan
            wissamdandan @Technical_Contact last edited by

            In this case you need to use rel Canonical

            His your reference from Miva Merchant

            http://www.mivamerchant.com/blog/google-addresses-duplicate-content

            1 Reply Last reply Reply Quote 1
            • Technical_Contact
              Technical_Contact @Technical_Contact last edited by

              Wow, I've been working with Miva's Design Club, going back and forth on how to fix this, for over a month. I should have asked the question here. I can finally get down to fixing this issue.

              Thank you!

              jr

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Google has deindexed a page it thinks is set to 'noindex', but is in fact still set to 'index'
                d.bird
                d.bird
                0
                5
                93

              • Can I use a 301 redirect to pass 'back link' juice to a different domain?
                TucsonAZWebDesign
                TucsonAZWebDesign
                0
                4
                4.8k

              • Soft 404's on a 301 Redirect...Why?
                EGOL
                EGOL
                0
                3
                349

              • Why can't I redirect 302 errors to 301's?
                Chris.Menke
                Chris.Menke
                0
                3
                80

              • Redirect a 301 Redirect
                RedCaffeine
                RedCaffeine
                0
                5
                98

              • I'm redesigning a website which will have a new URL format. What's the best way to redirect all the old URLs to the new ones? Is there an automated, fast way to do this?
                GregFindley.co.uk
                GregFindley.co.uk
                0
                2
                303

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

              • How to show a 'We are now...' message for a rebrand and do a 301 redirect?
                Pawngo
                Pawngo
                0
                5
                769

              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