Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Map Nginx Query String (no replies)

$
0
0
I have a webapp e.g example.com which is mapped with embedded url in nginx.

server {

location / {

set $args id=201;

try_files $uri $uri/ $uri/index.php /index.php;

}

}


When I visit my site **example.com and example.com/id=201** it renders same page.

but when i visit **example.com/index.php** it renders different page.

Is there any way to map **example.com/index.php** on the same page in which example.com is mapped? ( here example.com/id=201)

Viewing all articles
Browse latest Browse all 7229

Trending Articles



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