I have a very simple url rewriting rules:
RewriteEngine on
RewriteCond %{HTTP_HOST} !script.php
RewriteRule ^test/(.*) script.php?q=$1
The idea is to have this kind of urls: http://mywebsite.com/test/http://example.com
and then send http://example.com
to the script.php as a query parameter. The problem is that I'm receiving http:/example.com
instead of http://example.com
. Also, http:////example.com
would be sent as http:/example.com
. What causes this behavior ?