开发者

help rewriting this url. simple but not working

RewriteCond %{REQUEST_URI} !^/?ping.php
RewriteRule ^/\?(.*)$ ping.php?url=$1 [L]
开发者_如何学Go

i am trying to match any character that follows /?

 www.mysite.com/?someurl.com

instead it keeps loading the index.html !


You cannot match the query string with mod_rewrite, but if you still want to pass it on, you can add %{QUERY_STRING} to the resultant url, for example

RewriteRule ^.*$ ping.php?url=%{QUERY_STRING} [L]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜