隐藏Php扩展Htaccess代码显示错误

时间:2014-07-12 09:04:37

标签: php .htaccess

我正在使用此htaccess代码来隐藏我的网站php扩展 目前我正在使用WampServer Application

测试“localhost”
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME}\.php -f 
RewriteRule ^(.*)$ $1.php

显示错误:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log."

(我知道虽然我面临这个问题,但有很多关于隐藏页面扩展的讨论) 我怎样才能正确隐藏php扩展?请帮助!

0 个答案:

没有答案