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. Deal with links that need login to view

    Deal with links that need login to view

    Technical SEO Issues
    5 3 203
    • 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.
    • mtthompsons
      mtthompsons last edited by

      Hi All,

      Deal with links that need login to view

      We have member names in the site in many places and when clicked it takes the user to the login page

      As just logged in members can view the details

      The redirection type is 302 and Moz Campaign says we have many and need to make them 301

      What is the best way as we have a drupal website

      Thanks

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

        You need to nofollow noindex all those links.  Your user login sections are private and will not be ranked anyway, dont need the spiders getting in there.

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

          I don't think that's an issue, and I certainly won't set them as 301 as those are permanently moved (which means that the browser may not fetch the page again but instead send them to the login page even if they are logged in). 302s in that case are fine.

          However, you can consider another approach such as: http://www.domain.com/login?return=the-actual-linked-page (for not logged in users). That way you will avoid any 3XX while only show the definitive link to the logged in user.

          Hope that helps!

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

            When the user is logged in they wont see such links

            Only when a non member clicks they go to the login page and Bots scan as non member only

            When a user clicks and logs in and he is redirected to the page automatically he is intended to reach after login

            FedeEinhorn 1 Reply Last reply Reply Quote 0
            • FedeEinhorn
              FedeEinhorn @mtthompsons last edited by

              Exactly my point.

              You show the "http://www.domain.com/login?return=the-actual-linked-page" to non-logged in users and bots. while you show "http://www.domain.com/the-actual-linked-page" to logged in users. By doing that you don't have any 3XX redirects.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • Do we need to update All hardcoded links moving from http to https
                kbates
                kbates
                0
                7
                940

              • Links below linking (not sitelinks)
                Joseph-Vodafone
                Joseph-Vodafone
                0
                3
                127

              • View-All Page = Too Many links Issue, True or False
                Saijo.George
                Saijo.George
                0
                4
                182

              • Image Alt Text: Do I Need to Link my Image for it to Count?
                seo.owl
                seo.owl
                0
                5
                488

              • Do I need a link to my sitemap?
                TomRayner
                TomRayner
                0
                3
                1.9k

              • I have been Hit with UNWANTED Links and I need to know how to remove them?
                Cyrus-Shepard
                Cyrus-Shepard
                0
                7
                3.1k

              • How Much Authority Needed for Page with 1000 Internal Links?
                EGOL
                EGOL
                0
                2
                401

              • What should i do with the links for "Login", "Register", "My Trolley" links on every page.
                gmellak
                gmellak
                0
                2
                808

              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