Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
March 18, 2010, 05:03:39 PM

Pages: [1]   Go Down
  Print  
Author Topic: Creating the Best robots.txt for SMF  (Read 1486 times)
Mitch
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 12714


Business Development Specialist at Lunarpages


WWW
« on: August 17, 2009, 08:15:33 AM »

As many of you know, the robots.txt file is the file that search engines look at for "instructions" on which files and folders they should or should not index.  Looking around for a good SMF-inspired robots.txt file, I found this:

Code:
User-agent: *
Disallow: index.php?action=search*
Disallow: index.php?action=calendar*
Disallow: index.php?action=login*
Disallow: index.php?action=register*
Disallow: index.php?action=profile*
Disallow: index.php?action=stats*
Disallow: index.php?action=arcade*
Disallow: index.php?action=printpage*
Disallow: index.php?PHPSESSID=*
Disallow: index.php?*rss*
Disallow: index.php?*wap*
Disallow: index.php?*wap2*
Disallow: index.php?*imode*


This will tell the search engines to stop following those directories and links, and not to index the content within.  If you are using a plugin or service that re-writes your addresses to make your links more "SEO friendly" the above code might need to be edited some, but you get the basic idea of what needs to be done. 

Just wanted to share my find, just in case it helps somebody else out.  Anybody have any suggestions on how to do it better?
Logged

New Lunarpages Contest! - Win a Free Web Site Design! Enter Today!


Mitch the Moderator - follow me @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
818
Trekkie
**
Offline Offline

Posts: 11



WWW
« Reply #1 on: August 17, 2009, 11:38:18 PM »

Awesome! I was using a smaller one and google was able to take me to page 3 for the key words, "dog forum"  I will give this one a try to see how much better my site gets indexed.

Thanks Mitch!
Logged
Mitch
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 12714


Business Development Specialist at Lunarpages


WWW
« Reply #2 on: August 18, 2009, 05:13:32 AM »

Not a problem, happy to help!  Applause
Logged

New Lunarpages Contest! - Win a Free Web Site Design! Enter Today!


Mitch the Moderator - follow me @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
Pages: [1]   Go Up
  Print  
 
Jump to: