No Acces of File Type

Posted on Wednesday, October 28, 2009 in .htaccess

Example, don’t allow access to .ini files:
#no direct access of *.ini
RewriteRule ^(.*)\.ini$ http://%{HTTP_HOST}/ [R=301,L]

Leave a Comment

You must be logged in to post a comment.