url rewriting - Nginx URL rewrite changes URL -
I have to redirect a URL to nginx. My rule looks like this that clearly changes the URL to the browser, which is not expected.
location / {rewrite ^ / dentist / bangalore / indiranagar / $ http: // abc.com/doctorsInArea.htm?cID=bangalore&aid=indiranagar break; } Let me read another question here which asks me to remove the http part. I tried
place / {rewrite ^ / dentist / Bangalore / Indiranagar / $ / in doctor's arrow. Htm? Cid = bangalore & aid = indiranagar break; } It throws a 404 even if it works fine when it hits the browser. Any insights on this problem will be approved.
I had to work using the following. place / {rewrite "/ dentist / bangalore / indiranagar /" /doctorsInArea.htm?cID=bangalore&aid=indiranagar final; } Thanks!
Comments
Post a Comment