|Including a default robots.txt file [message #186582]
||Fri, 03 October 2014 17:18
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
#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
#Default PATH_INFO and PATH_INFO_SEO URLs:
#PATH_INFO and PATH_INFO_SEO URLs if you remove the index.php from the URL
|Re: Including a default robots.txt file [message #186620 is a reply to message #186617]
||Sun, 05 October 2014 20:08
The above code should go in a robots.txt file, not the .htaccess file. So I was suggesting putting a robots.txt file that they could move into their server's root directory to activate. In addition, I think it would be really nice if we added some comments to the read more or even some code that pops up so that if you use the path_info template set, you get told that you could/should probably use this robots.txt file. (I think it's important enough that it should be part of the install process is what I'm saying.)|
(I referenced the .htaccess file as an example of how some products include default files that aren't actually used until you rename them or cut/paste their contents into another file.)