help rewriting this url. simple but not working

前端 未结 1 1230
挽巷
挽巷 2021-01-26 04:51
RewriteCond %{REQUEST_URI} !^/?ping.php
RewriteRule ^/\\?(.*)$ ping.php?url=$1 [L]

i am trying to match any character that follows /?

相关标签:
1条回答
  • 2021-01-26 05:23

    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 讨论(0)
提交回复
热议问题