Showing 39 Result(s)
How to remove hypen (-) using nginx rewrite rule?

How to remove hypen (-) using nginx rewrite rule?

user3382916 asked: I am using this rewrite rule to redirect example.com/a-b-c?id=learn-more —-> http://example.com/abc?id=learnmore rewrite ^/a-b-c?id=learn-More http://example.com/abc?id=learnMore permanent But its not working !! It is redirecting to example.com/abc?id=learn-more (learn-more is not …

Redirect based on parameter

Redirect based on parameter

Moon asked: I’m trying to redirect a page based on the parameters passed. I would like redirect rewrite ^/join_trial to /test? permanent; and rewrite ^/join_trial?discount=free(.*) /test2? permanent; The first one …