开发者

.htaccess File Security

开发者 https://www.devze.com 2023-02-03 03:24 出处:网络
Is this .htaccess file safe? Saw it as default in my web host\'s root folder # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

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_glo开发者_StackOverflow中文版bals 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消