Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Redirect/Rewrite

$
0
0
I am trying to redirect the page to a new location.
I am trying to go from http://localhost/page/image_archive.php?i=500
to http://localhost/gallery/500
The $query_string is causing an error. The query_string is i=500. How can I just get the number and not i=500 or whatever number.

location ~* ^/page/image_archive.php?$
{
return 302 http://127.0.0.1/gallery/$query_string;
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>