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. Login Page Redirection

    Login Page Redirection

    On-Page / Site Optimization
    8 3 862
    • 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.
    • anantgarg
      anantgarg last edited by

      Hello,

      I have certain pages on my site which are login only. Am wondering if a user reaches that page, should I send him to a 301 redirect to a new login page? or some other form of redirection?

      Any suggestions on how to best tackle this situation?

      Update

      If I redirect to a login.php page, then what kind of redirection should I use?

      Thank you for your time,

      Anant

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

        I'm guessing that you currently load the login form if the user isn't logged in onto the page without redirecting? If so, that's perfectly fine... all I'd do is add a 'noindex, follow' meta robots tag to those pages.

        Others might think differently though - would be interested to hear if there're any benefits in redirecting to a central login page...

        anantgarg 1 Reply Last reply Reply Quote 1
        • anantgarg
          anantgarg @mattbeswick last edited by

          How do I add a noindex, follow code? Is it a HTML tag? should it be follow or nofollow?

          StephanM mattbeswick 2 Replies Last reply Reply Quote 0
          • StephanM
            StephanM last edited by

            It's an HTML tag and should be placed in your

            anantgarg 1 Reply Last reply Reply Quote 0
            • StephanM
              StephanM @anantgarg last edited by

              Hmm, I meant to post my reply here instead as an answer but I can't seem to edit it anymore. Anyway, yes it's an HTML meta tag. See my other post.

              1 Reply Last reply Reply Quote 0
              • mattbeswick
                mattbeswick @anantgarg last edited by

                Stephan - Edit's been broken for a while - apparently a bug report was sent off to the SEOMoz dev team last week 🙂

                Anant - Stephan's answer below is correct... I should've included that in my original answer but Monday morning laziness took over! One thing to remember - make sure you only add it to pages that require a login as you'll end up de-indexing a load of pages if you mess it up.

                -Matt

                1 Reply Last reply Reply Quote 0
                • anantgarg
                  anantgarg @StephanM last edited by

                  Why "follow"? Why not "nofollow"?

                  StephanM 1 Reply Last reply Reply Quote 0
                  • StephanM
                    StephanM @anantgarg last edited by

                    Follow/nofollow tells Google whether to follow the links on that page, regardless of whether it should index it.

                    Follow is usually safer, because even if it doesn't add the page to Google's index it at least alows Google to follow the links and pass some PageRank around. If a login form is all there is, nofollow would be no problem either, but it can never hurt to have Google follow the links to other sections of your website.

                    The only time I use nofollow in combination with noindex if it's a page that links out a lot (like the almost obligatory 'Friends' or similar linking pages). Those pages I don't want to index AND don't want to pass pagerank through. Anything else: just follow.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Combining products - edit existing product page or 301 redirect to new page?
                      hefazmarket91
                      hefazmarket91
                      0
                      26
                      166

                    • SEO and auto login with redirect
                      Tylerj
                      Tylerj
                      0
                      2
                      94

                    • Login Page Outranking Homepage
                      EGOL
                      EGOL
                      0
                      2
                      82

                    • To redirect or not to redirect...That is the question
                      EGOL
                      EGOL
                      0
                      3
                      189

                    • Redirecting https pages
                      MikeTek
                      MikeTek
                      0
                      4
                      118

                    • Which page to rank for a Keyword? Home Page or Deep Page?
                      MoosaHemani
                      MoosaHemani
                      0
                      14
                      197

                    • 301 Redirect to product page or category?
                      Vizergy
                      Vizergy
                      0
                      5
                      342

                    • Redirect and page ranking
                      poupette
                      poupette
                      0
                      5
                      875

                    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