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. On-Page / Site Optimization
    4. 302 (Temporary Redirect) up and growing, how to fix?

    302 (Temporary Redirect) up and growing, how to fix?

    On-Page / Site Optimization
    5 4 2.7k
    • 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.
    • tanlup
      tanlup last edited by

      Hi guys.

      On my website I have an action that will only perform if you are logged into your account, otherwise you are redirected to the login page causing a 302 redirection.

      When SEOmoz crawls my website, it gets all these redirections to the login page, but I really can't do much better so what is the best way of fixing this?

      I've thought of using rel="nofollow", but I want make sure this change will fix my issue, both with the SEOmoz crawler and any other search engine crawler.

      Thank you guys so much!

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

        Is it using response.redirect in .NET by any chance?

        tanlup 1 Reply Last reply Reply Quote 0
        • tanlup
          tanlup @wojkwasi last edited by

          Not really, my app is written in PHP and I'm doing a simple http redirect.

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

            I don't think there is anything you can really do to prevent this.  That's just the nature of the beast when it comes to pages that can only be seen by privileged users.

            Typically, sites I've created, all the "member" pages are located within the own directory, ie. /my-account/, where I place a block on the folder within the robots.txt file so crawlers can't get their hands on privileged information.

            1 Reply Last reply Reply Quote 0
            • Cyrus-Shepard
              Cyrus-Shepard last edited by

              Hi Éber,

              In my opinion, it's totally legitimate to nofollow those links to your login page, assuming they are showing the same 302 redirect and login page to Google. This will cut down on excessive crawling and possibly help you out with your Google Crawl "allowance."

              If, on the other hand, you wanted to direct some link juice towards your login page, you could turn the 302 into a 301.

              There might be other solutions, such as blocking the page with robots.txt, or using clever javascript. That said, nofollow is probably the easiest.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • Site has 302 redirects for HTTP to HTTPS when it should be 301
                Dalerio-Consulting
                Dalerio-Consulting
                1
                2
                55

              • Alot of 302 Redirects, what to do?
                petmkt
                petmkt
                0
                5
                75

              • Redirecting deleted posts 301 vs 302
                redfishking
                redfishking
                0
                6
                614

              • 302 redirect (temporary redirect)
                Shanaki
                Shanaki
                0
                8
                1.4k

              • 302 redirections warnings
                juanmiguelcr
                juanmiguelcr
                0
                3
                258

              • Temporary Redirect Warnings
                UnderMe
                UnderMe
                0
                4
                235

              • 302 Temporary Redirects
                littlesthobo
                littlesthobo
                0
                5
                274

              • Temporary redirect - help!
                BenRWoodard
                BenRWoodard
                0
                2
                138

              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