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. For URLs that require login, should our redirect be 301 or 302?

    For URLs that require login, should our redirect be 301 or 302?

    Intermediate & Advanced SEO
    4 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.
    • alecfwilson
      alecfwilson last edited by

      We have a login required section of our website that is being crawled and reporting as potential issues in Webmaster Tools. I'm not sure what the best solution to this is - is it to make URLs requiring a login noindex/nocrawl? Right now, we have them 302 redirecting to the login page, since it's a temporary redirect, it seems like it isn't the right solution. Is a 301 better?

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

        a 302 would suggest the page will be back anytime soon since its a "temporary redirect"
        While a 301 suggest the page is moved. So personally i would use a 302 so that the page your landing on keeps the juice but the user will be redirected to a login screen for example.

        I would suggest to noindex those pages if they are really hidden for search engines. (noindex,follow)

        Interesting reads:

        • Save your website with redirect on Moz.com
          and - SEO Advice discussing 302 redirect on mattcutts.com
        1 Reply Last reply Reply Quote 1
        • alecfwilson
          alecfwilson last edited by

          Thanks - so the 302 redirect suggests the page has moved temporarily, which it has not. It simply cannot be accessed until a login. Is that considered "moved temporarily?" Since it will be accessible with a login, is that considered a temporary move? I will absolutely make pages that require login noindex. Should I make them nocrawl as well?

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

            Uhmn. Yes and no.

            302 suggests it will be back. but actually it will be never back. 
            So a 302 would keep the link juice where it is which is fine. because you do not want to have all that juice to the invaluable login page right.

            but noindex following is the way to go.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • All URLs in the site is 302 redirected to itself
              zeehj
              zeehj
              0
              3
              148

            • How do you 301 redirect URLs with a hashbang (#!) format? We just lost a ton of pagerank because we thought javascript redirect was the only way! But other sites have been able to do this – examples and details inside
              JamesTDG
              JamesTDG
              0
              9
              7.9k

            • How to redirect an url in .htaccess when "redirect 301" doesnt work
              WilliamKammer
              WilliamKammer
              0
              5
              173

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

            • 301 Redirection and apostrophes in URLs
              Seamoose
              Seamoose
              0
              3
              2.0k

            • 301 redirect with /? in URL
              Aleyda
              Aleyda
              0
              5
              736

            • How to 301 redirect all URLs with /? in?
              JohnPeters
              JohnPeters
              0
              9
              331

            • Login redirect 302
              Anthony_NorthSEO
              Anthony_NorthSEO
              0
              9
              2.3k

            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