Forum Moderators: phranque
#hide .txt files
<Files ~ "\.txt">
Order allow,deny
Deny from all
</Files>
#hide .txt files
<Files ~ "\robots.txt">
Order allow,deny
Allow from all
</Files>
But now I am wondering if this denies access to the robots-txt to the likes of Googlebot.
So, can I use the code I pasted above (the first) and add an "allow" for the robots.txt?No, because the
deny applies to IPs, not filenames. Wouldn't the simple answer be to put all the .txt files into one folder and deal with folders instead?
Deny from all
I hope I am not doing something stupid by having TWO .htaccess files
Can you see any hiccups?
Will it affect robots.txt in any way?