FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Including a default robots.txt file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Including a default robots.txt file [message #186582] Fri, 03 October 2014 21:18 Go to previous message
cpreston is currently offline  cpreston   United States
Messages: 160
Registered: July 2012
Location: Oceanside
Karma:
Senior Member
It seems to me that if you want to be seo-friendly, you use the path_info_seo template set, and you use the robots.txt settings included in the FAQ.

If that's the case, what about including in the install a default robots.txt file like the one below that would work for anyone whether or not they turned on URL rewriting or not?

This is just like Joomla where they include an htacess.txt file. All you have to do is rename it to .htaccess and you're good to go.

#This following code can be appended to your site's robots.txt file if you are
#using a theme based on the PATH_INFO or #PATH_INFO_SEO template set.
#It will prevent search engine bots from finding multiple instances of your
#posts.  

#Note1: You need to change /forum/ to the subdirectory where you forum is located
#Note2: Your site's robots.txt file is in the site's root directory, not the subdirectory
#where you installed FUDforum

User-agent: *
Crawl-Delay: 2
#Default PATH_INFO and PATH_INFO_SEO URLs:
Disallow: /forum/index.php/a/
Disallow: /forum/index.php/bl/
Disallow: /forum/index.php/d/
Disallow: /forum/index.php/ef/
Disallow: /forum/index.php/gm/
Disallow: /forum/index.php/h/
Disallow: /forum/index.php/i/
Disallow: /forum/index.php/il/
Disallow: /forum/index.php/ip/
Disallow: /forum/index.php/l/
Disallow: /forum/index.php/lk/
Disallow: /forum/index.php/m/
Disallow: /forum/index.php/ma/
Disallow: /forum/index.php/mar/
Disallow: /forum/index.php/ml/
Disallow: /forum/index.php/mn/
Disallow: /forum/index.php/mv/
Disallow: /forum/index.php/ot/
Disallow: /forum/index.php/pdm/
Disallow: /forum/index.php/pl/
Disallow: /forum/index.php/pmm/
Disallow: /forum/index.php/r/
Disallow: /forum/index.php/re/
Disallow: /forum/index.php/rm/
Disallow: /forum/index.php/s/
Disallow: /forum/index.php/sel/
Disallow: /forum/index.php/st/
Disallow: /forum/index.php/tt/
Disallow: /forum/index.php/u/
Disallow: /forum/index.php/uc/
#PATH_INFO and PATH_INFO_SEO URLs if you remove the index.php from the URL
Disallow: /forum/a/
Disallow: /forum/bl/
Disallow: /forum/d/
Disallow: /forum/ef/
Disallow: /forum/gm/
Disallow: /forum/h/
Disallow: /forum/i/
Disallow: /forum/il/
Disallow: /forum/ip/
Disallow: /forum/l/
Disallow: /forum/lk/
Disallow: /forum/m/
Disallow: /forum/ma/
Disallow: /forum/mar/
Disallow: /forum/ml/
Disallow: /forum/mn/
Disallow: /forum/mv/
Disallow: /forum/ot/
Disallow: /forum/pdm/
Disallow: /forum/pl/
Disallow: /forum/pmm/
Disallow: /forum/r/
Disallow: /forum/re/
Disallow: /forum/rm/
Disallow: /forum/s/
Disallow: /forum/sel/
Disallow: /forum/st/
Disallow: /forum/tt/
Disallow: /forum/u/
Disallow: /forum/uc/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: post or message?
Next Topic: My updates in backup routine
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 15:35:51 GMT 2024

Total time taken to generate the page: 0.04437 seconds