Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

robots.txt for SEO

0 votes
What will be appropriate robots.txt for question2answer sites?
asked Oct 1, 2011 in Q2A Core by Raj

1 Answer

0 votes

I use the following, which blocks the login page and forgot password page (because they usually contain the "?to=" parameter so you get duplicate content).

User-agent: *
Disallow: /qa/login
Disallow: /qa/forgot


"qa/" here is the subfolder you have Q2A in - if you're using a root domain remove that bit.

answered Oct 1, 2011 by DisgruntledGoat
Thanks for quick answer.

how about this -

User-agent: *

Disallow: /login*
Disallow: /register*
Disallow: /forgot

Sitemap: http://www.xxxxxx.com/sitemap.xml
You don't need the * after login and register. Using `Disallow: /qa/login` blocks everything beginning with that URL. Also I'm not sure if a space is allowed between the user-agent and disallow lines.