1
回答
.htaccess伪静态规则怎么不正确?
华为云4核8G,高性能云服务器,免费试用   

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

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
发帖于6年前 1回/782阅
顶部