URL重写很有难度的?求助!!!!
要求:
重写所有QUERY_STRING中包括有more=XX的url请求,即使真实url存在!!
比如存在test.html文件
http://abc.com/test.html?more=1&other=0
http://abc.com/test.html?other=0&more=1
重写为:
http://abc.com/test.php?other=0&more=1
像http://abc.com/test.html?other=0&u=456这样的就不重写
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING}% ^more=(*)$
RewiteRule ^?(.*)$ /test.php?more=$1 [L]
</IfModule>
我上面的错在哪呢?
错误提示:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] 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.