1
回答
.htaccess伪静态规则怎么不正确?
【腾讯云】校园拼团福利,1核2G服务器10元/月!>>>   

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

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回/739阅
顶部