I have some complicated sites with many different .htaccess files for specific subdirectories. I have had good results with modified .htaccess files inside the subdirectories for Sitemaps generator. Below is what I have tried. Does anyone else have different configurations that might be better and safer? (Note: I also rename /generator/ just to trip up any malicious hacker issues.)
/generator/
.htaccess file with this text:
===============
Options +Includes
Options -Indexes
Options +FollowSymLinks
#
AddType text/html shtml
AddHandler server-parsed shtml
AddHandler server-parsed .html
AddHandler server-parsed .htm
/generator/data/
.htaccess file with this text:
===============
#
Options +Includes
Options -Indexes
Options +FollowSymLinks
#
#
AddType text/html shtml
AddHandler server-parsed shtml
AddHandler server-parsed .html
AddHandler server-parsed .htm
#
order deny,allow
#
deny from all
<Files ~ "\.(txt|html|gz|jpg|png|gif)$">
allow from all
</Files>