I have created a .htaccess file in which I try to rewrite certain URL's. My goals is to pass an URL to another script as a parameter. It kind of works, but I end up with URL's that only contain one forward slash in the protocol part (e.g. http:/ instead of http://)
This is my .htaccess file
DirectoryIndex index.php
php_flag register_globals off
php_flag magic_quotes_gpc off
php_value display_errors 0
FileETag none
ServerSignature Off
Options All -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^test/(.*)$ test.php?url=$1 [QSA,NC,NE,L]
</IfModule>
Now when I request the following : http://example.org/test/http://myurl.com, the php $_REQUEST object contains an url variable containing http:/myurl.com
EDIT When I request : http://example.org/test/http%3A%2F%2Fmyurl.com, the URL doesn't get rewritten at all (doesn't match the rewrite regex somehow)
I cannot seem to find the proper solution for this problem, it doesn't seem to be a problem with escape characters (since that would be a backslash)