Rewrite URL with parameters

Raphael R. O. rabeloo at
Thu Dec 5 17:09:06 UTC 2013

Hi guys,

I'm trying to rewrite an url with a few parameters, but unsuccessfully.

The URL:

I need rewrite to:

The /promotionalXXX can be /promotional123, /promotional324 and many more

What i already tried:


and ...

location = /category-body/categories/promotional(.*)$ {
if ($args ~
 rewrite ^/digital-parts/newspaper/recs-xyaw-sazz-qqad-cxae; permanent;

But any of this worked for me...

What's the best way to solve this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list