Welcome! Log In Create A New Profile

Advanced

Map Nginx Query String

August 21, 2014 07:01AM
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)
Subject Author Posted

Map Nginx Query String

vikash.jha@intelligrape.com August 21, 2014 07:01AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready