Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Themes by


I am using SnowFlat theme. For guest user whenever they access any question, they get following at the bottom of the page:

Please log in or register to answer this question.

But the login and register links are not "nofollow" and due to this Google is indexing all login link for all post. How can I make it nofollow for SnowFlat theme?



Q2A version: 1.7.1

1 Answer

+1 vote
selected by
Best answer

The easiest way is to use robots.txt. If you don't already have one make that file in your site root, and add

User-agent: *
Disallow: /login
Disallow: /register

(Remove the blank lines between them, I'm posting this on mobile and can't do it here.)

Thanks! As of now I have blocked it via robots.txt.