Hi, How would I configure my robots.txt file to prevent google from indexing my users profiles, and possibly other stuff like print view? Thanks.
To block profiles from bots: Disallow: /forum/index.php?action=profile* print view: Disallow: /forum/index.php?action=printpage* Below is a sample one. You can add/remove your choices. # for SMF Disallow: /forum/index.php?action=search* Disallow: /forum/index.php?action=calendar* Disallow: /forum/index.php?action=login* Disallow: /forum/index.php?action=register* Disallow: /forum/index.php?action=profile* Disallow: /forum/index.php?action=stats* Disallow: /forum/index.php?action=arcade* Disallow: /forum/index.php?action=printpage* Disallow: /forum/index.php?PHPSESSID=* Disallow: /forum/index.php?*rss* Disallow: /forum/index.php?*wap* Disallow: /forum/index.php?*wap2* Disallow: /forum/index.php?*imode* Disallow: /forum/Themes/* Disallow: *msg*
This was just what I am looking for. But I have one question, is there a way to keep it from indexing all the topics in a certain board without having to manually add each topic? ex. Board = /index.php?board=27.0 ex. Topic = /index.php?topic=15.0 ex. Topic = /index.php?topic=16.0 The Topic url's don't include the board URL, so I am kinda stuck.
Thanks 'virkalurk' for bringing an almost TWO YEARS OLD thread back in discussion!!! However, you can always use the * char to widen your rules: ex. Board = /index.php?board=27.0* ex. Topic = /index.php?topic=15.0* ex. Topic = /index.php?topic=16.0* And by the way, consider using URL Rewriting
Thanks for your reply. I decided to go a completely different route that didn't require me to hide certain info from search engines that would interfere with showing other certain info. I didn't see that it was year old. Also, I do appreciate your comment immensely about URL redirection and SEF. I have been looking into that for SMF. You just made me realize how much more important it is. Kudos