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. How do I fix a 301 Redirect Loop?

    How do I fix a 301 Redirect Loop?

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

      Saturday I waas doing some correcting of some duplicate titles, including nofollowing tags, etc. (my main problem was duplicate titles due to tags and categories being indexed).

      Now this morning I see that one of my pages refuses to load, citing a 301 redirect loop.

      http://www.incredibleinfant.com/feeding/switching-baby-formula/

      Originally, the page was posted under the wrong category.

      http://www.incredibleinfant.com/uncategorized/switching-baby-formula

      I resaved it under the correct category (feeding) and now it won't load.

      Can someone help me figure out how to correct this mess?

      Thanks so much

      Heather

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

        Hi Heather, can you post your HTACCESS info that pertains to this redirect?

        You may simply have an ambiguous statement in there.

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

          Is this what you need?

          BEGIN W3TC Browser Cache

          <ifmodule mod_deflate.c=""><ifmodule mod_setenvif.c="">BrowserMatch ^Mozilla/4 gzip-only-text/html
                  BrowserMatch ^Mozilla/4.0[678] no-gzip
                  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
                  BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html</ifmodule>
              <ifmodule mod_headers.c="">Header append Vary User-Agent env=!dont-vary</ifmodule>
              <ifmodule mod_filter.c="">AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon</ifmodule></ifmodule>
          <filesmatch ".(css|js|htc|css|js|htc)$"="">FileETag None
              <ifmodule mod_headers.c="">Header set X-Powered-By "W3 Total Cache/0.9.2.4"</ifmodule></filesmatch>
          <filesmatch ".(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml)$"="">FileETag None
              <ifmodule mod_headers.c="">Header set X-Powered-By "W3 Total Cache/0.9.2.4"</ifmodule></filesmatch>
          <filesmatch ".(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$"="">FileETag None
              <ifmodule mod_headers.c="">Header set X-Powered-By "W3 Total Cache/0.9.2.4"</ifmodule></filesmatch>

          END W3TC Browser Cache

          BEGIN W3TC Page Cache core

          <ifmodule mod_rewrite.c="">RewriteEngine On
              RewriteBase /
              RewriteRule ^(./)?w3tc_rewrite_test$ $1?w3tc_rewrite_test=1 [L]
              RewriteCond %{HTTP:Accept-Encoding} gzip
              RewriteRule .
          - [E=W3TC_ENC:gzip]
              RewriteCond %{REQUEST_METHOD} !=POST
              RewriteCond %{QUERY_STRING} =""
              RewriteCond %{HTTP_HOST} =www.incredibleinfant.com
              RewriteCond %{REQUEST_URI} /$ [OR]
              RewriteCond %{REQUEST_URI} (sitemap(index)?.xml(.gz)?|[a-z0-9-]+-sitemap([0-9]+)?.xml(.gz)?) [NC]
              RewriteCond %{REQUEST_URI} !(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|/feed/|wp-.*.php|index.php) [NC,OR]
              RewriteCond %{REQUEST_URI} (wp-comments-popup.php|wp-links-opml.php|wp-locations.php) [NC]
              RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|wordpress
          [a-f0-9]+|wordpress_logged_in) [NC]
              RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0.9.2.4) [NC]
              RewriteCond "%{DOCUMENT_ROOT}/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" -f
              RewriteRule .* "/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" [L]</ifmodule>

          END W3TC Page Cache core

          BEGIN WordPress

          <ifmodule mod_rewrite.c="">RewriteEngine On
          RewriteBase /
          RewriteRule ^index.php$ - [L]
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule . /index.php [L]</ifmodule>

          END WordPress

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

            Hi Heather,

            Yes this is what I was looking for.

            Sorry for not getting back to you sooner.

            Generally the Wordpress core systems work great, its other modules that tend to cause issues. I don't see a specific problem with the htacess, did you install any other redirecting scripts like canonical redirects?

            It sounds like this maybe a somewhat common issue and you may find quicker answers to this sort of technical issue directly on the Wordpress forums. I've done some basic things with WP before, but I have not digested it to the degree you would expect to find on the official forums.

            Gotmoxie 1 Reply Last reply Reply Quote 0
            • Gotmoxie
              Gotmoxie @donford last edited by

              thank you, I will look there.  Thanks for getting back to me and pointing me in a new direction.  Appreciate it!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • 301 Redirects
                industriestaedt
                industriestaedt
                0
                2
                36

              • How do you fix redirect chains and temporary redirects?
                AllChargedUp
                AllChargedUp
                0
                7
                329

              • 301 Redirects
                TheeDigital
                TheeDigital
                0
                3
                258

              • How best to fix 301 redirect problems
                daedriccarl
                daedriccarl
                0
                5
                346

              • 301 redirects
                nyc-seo
                nyc-seo
                0
                3
                194

              • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
                Chris-CA
                Chris-CA
                0
                5
                456

              • Delete 301 redirected pages from server after redirect is in place?
                RuthBurrReedy
                RuthBurrReedy
                0
                5
                4.0k

              • Google Webmaster redirect vs 301 redirect
                lavellester
                lavellester
                0
                2
                493

              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