Setting .htaccess on Server-Side Includes Sites
« on: August 13, 2014, 08:07:24 PM »
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>

Re: Setting .htaccess on Server-Side Includes Sites
« Reply #2 on: August 14, 2014, 01:57:08 PM »
Thanks Oleg! The product is a terrific timesaver for me.