.htaccess伪静态规则怎么不正确?

foxidea 发布于 2012/11/21 10:05
阅读 834
收藏 0

经过测试我这样写是可以的:

RewriteEngine on
#RewriteBase /

RewriteRule 1\.html /Handler.php/$1


但是我想把整个站的请求全部交给 Handler.php 处理

RewriteEngine on

#RewriteBase /
RewriteCond %{QUERY_STRING} ^(.*)$ 

RewriteRule ^(.*)$ Handler.php/$1


当我访问的时候 出现错误:

这是什么原因

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.





加载中
0
justjavac
justjavac
RewriteRule ^(.*)$ Handler.php/$1

是不是少了个/

foxidea
foxidea
不是,可能是这样会让 伪静态陷入 死循环,所以报错了 我已经更改正确了
返回顶部
顶部