Apache mod_rewrite converts double slashes to one slash
问题 i have a URL like this: http://example.com/img.php?url=http://example2.com/path/to/image/name.jpg so i created a rule by help of this question Apache mod_rewrite complex URL regex RewriteRule ^img.php\/(.+?(?:\.jpg|\.png))$ img.php?url=$1 but when i use this rule in htaccess file and use same URL like this: http://example.com/img.php/http://example2.com/path/to/image/name.jpg in result double slashes after http: in my parameter converts to one slash! so my first parameter in php becomes: http