4

I am trying to lock content on my Wordpress site, but obviously I want Google to crawl it. When I lock the content, the header comes back as a 302 redirect(redirecting to a page where someone can login or sign up). Will google still index it as if it were 200?

1 Answer 1

2

If users are redirected to the login page then so will Google, so no, the page will not be indexed.

The login page (the page you are redirected to) will be indexed instead, unless you have a noindex robots meta tag (or equivalent HTTP response header) on the login page (which you probably should have anyway).

  • You could serve different content to Google than you do for normal users. ie. let Google see the real content while redirecting normal users. This is called cloaking. However, this considered black hat these days and could see your site severely penalised.

  • Alternatively, allow everyone to see your site for a month (or so) and allow Google to index the content in the usual way and then lock the content on your site. However, your indexed pages are likely to drop off after this time, but hopefully users will have had a chance to find it.

  • Or only publish the first part of the article and have the full article available to authenticated users. Google might be able to pick up keywords and subject matter from the publicly available teaser.

At the end of the day Google only wants to index content that is publicly available for all to see.

5
  • 1
    But even if I have a noindex on the page the user is redirected to, the original page is still ot indexed, correct?
    – Steve
    Commented Dec 13, 2012 at 0:10
  • hmmmm. I would wait a month, but the content could change in the future, and I want a system that will work for future pages and posts without having to worry about when each was published and whether or not it has been indexed. Do you have any other ideas?
    – Steve
    Commented Dec 13, 2012 at 0:15
  • If you have a 302 redirect then the original page is never served - it's as if it doesn't exist - no one sees it. I added a bit more info.
    – MrWhite
    Commented Dec 13, 2012 at 0:15
  • You would certainly need to automate the process if you locked pages only after a period of time from the date of publication - the webmasterworld forums used to do something like this. At the end of the day Google indexes publicly available content - it's not interested in listing pages in the SERPs that users might otherwise not be able to see.
    – MrWhite
    Commented Dec 13, 2012 at 0:21
  • Thanks for the help! I ended up locking the content by placing a semi-transparent white div layer over the content and another form on top of that with a fixed position imploring the ser to login it signup, this way the content is still there, but difficult to read if the user isn't logged in. You can view it here: kgstiles.com/articles
    – Steve
    Commented Dec 15, 2012 at 4:11

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.