Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
315 views
in Q2A Core by
edited by
hi all

When i search on google , it shows me links of my users pages.but I don't want to google shows them.

I put disallow url in my robots.txt but , doesn't  work!

what should i do?
Q2A version: 1.5

1 Answer

+4 votes
by
selected by
 
Best answer

All the users pages are at /user/Username so you should put this in your robots.txt:

 

User-agent: *
Disallow: /user/

Or if your Q2A installation is in a subfolder like example.com/qa/ put this:

 

User-agent: *
Disallow: /qa/user/
by
also, make sure to untick the users in your sitemap or you'll get errors on webmaster tools
...