Hi,
I want to write using nginx redirect rule for URLs like
http://mysite.com/redirect.php?go=http://external.site/path/page
So I write this
location ~ ^/redirect.php {
rewrite /redirect.php(.*)$ $arg_go? permanent;
}
And it works only for simple URL
But when there is complex URL in GO param,
for example
http://mysite.com/redirect.php?go=http://external.site/script?param=value¶m2=value2
It redirects to http://external.site/script
How can I make rule which will redirect user to
http://external.site/script?param=value¶m2=value2
P.S. I do not know exact param names for all posible URLs.