I have the following problem. My script requires URLs via a parameter. E.g. http://mydomain.tld/submit.php?url=http://the-target.com/path/url.php?param1=value1¶m2=value2
This example works fine. But now I want to have a URL like this: http://mydomain.tld/submit/http://...
and "submit/..." should be redirected to "submit.php?url=...". I already tried the following rule:
- Code: Select all
RewriteRule ^submit/(.+)$ submit.php?url=$1 [L]
But this seems not to work. My script only gets the domain and path of the URL in the parameter (in this example: http://the-target.com/path/url.php)
Does anyone have an idea to solve this problem?