0
RewriteCond %{REQUEST_URI} !^/?ping.php
RewriteRule ^/\?(.*)$ ping.php?url=$1 [L]

i am trying to match any character that follows /?

 www.mysite.com/?someurl.com

instead it keeps loading the index.html !

gwegaweg
  • 33
  • 1
  • 5

1 Answers1

0

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]
Jeffrey Aylesworth
  • 8,242
  • 9
  • 40
  • 57