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

Rewrite query string nginx

$
0
0
I am using this rewrite rule to redirect http://example.com/a-b-c?id=learn-more to ---> http://example.com/abc?id=learnmore

rewrite ^/a-b-c http://example.com/abc
rewrite ^/a-b-c?id=learn-More http://example.com/abc?id=learnMore permanent
But its not working !! It does redirect to

http://example.com/abc?id=learn-more (learn-more is not converted to learnmore ({Remove '-'}).

How to achieve this?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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