1
回答
.htaccess伪静态规则怎么不正确?
注册华为云得mate10,2.9折抢先购!>>>   

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

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.





举报
foxidea
发帖于5年前 1回/702阅
顶部