XML Sitemaps Generator

Author Topic: Setting .htaccess on Server-Side Includes Sites  (Read 5512 times)

c.berlet

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Setting .htaccess on Server-Side Includes Sites
« on: August 13, 2014, 07: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>


XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Setting .htaccess on Server-Side Includes Sites
« Reply #1 on: August 14, 2014, 06:35:13 AM »
Hello,

it looks ok to me.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

c.berlet

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Re: Setting .htaccess on Server-Side Includes Sites
« Reply #2 on: August 14, 2014, 12:57:08 PM »
Thanks Oleg! The product is a terrific timesaver for me.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2