Frank Nwoko
Frank Nwoko

Reputation: 3934

.htaccess File Security

Is this .htaccess file safe? Saw it as default in my web host's root folder

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName mydomain.com
AuthUserFile /home/myname/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/myname/public_html/_vti_pvt/service.grp

php_flag register_globals off ---BTW throws 500 internal on server

///This doesn't work

///Rewrite and remove .php extension

RewriteCond %{SCRIPT_FILENAME} !-d

RewriteRule ^([^.]+)$ $1.php [NC,L]

Please any ideas? Thank you

Upvotes: 0

Views: 266

Answers (1)

andrewk
andrewk

Reputation: 3871

Yes. It is safe. Touch it only if you know what you are doing.

Upvotes: 1

Related Questions