• Welcome to Sitemap Generator Forum.
 

Setting .htaccess on Server-Side Includes Sites

Started by c.berlet, August 13, 2014, 08:07:24 PM

Previous topic - Next topic

c.berlet

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>



c.berlet

Thanks Oleg! The product is a terrific timesaver for me.