If you have URLs on your site that require a login but a user who is not logged in tries to access those login required URLs, how do you handle it? 401, 403, 404, 301 to a login page?

If the page requires login but also requires payment, how do you handle that?

Have an error message on the current page you are on say that you must be logged in to view this page?

What would rank better for search engine bots?

I want to avoid cloaking and any negative things that would cause lower rankings. It would be nice to be able to rank for those pages that are behind the login though since that is where a lot of my main content will be.

  • related: webmasters.googleblog.com/2017/10/… Jun 12, 2020 at 3:19
  • @MaximillianLaumeister what if the free content is behind a login though? Can Google still see it? I was planning on having free content behind a login but how do you let Google see it? When it says structured data does it mean use schema.org?
    – user111808
    Jun 12, 2020 at 3:25
  • No, you'll have to give the Google crawler bot special login-less access if you want it to crawl those pages. You'll want to use the noarchive tag too, to make sure people can't just pluck your paid content out of the Google cache. I would elaborate but I'm busy tonight! Just wanted to share that link Jun 12, 2020 at 3:29
  • How do I give Google crawler bot special login access? I will look into the noarchive tag that is good advice, thanks for that and the link.
    – user111808
    Jun 12, 2020 at 3:31
  • Here's how to identify googlebot. The basic idea is to use server side code to identify it and let it through. You have to be very careful not to violate any guidelines like cloaking, but that's near the limits of my knowledge. support.google.com/webmasters/answer/80553?hl=en Jun 12, 2020 at 3:40


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.