Permanent Redirect

openstream nginx-forum at
Thu Apr 22 00:18:41 MSD 2010

Hi there,

I'm trying to permanently redirect various outdated URLs to the domain's home page like so:

location /phpshop {
  rewrite ^ permanent;

which results e.g. in

to be rewritten to

which kind of makes sense, but I need to strip those parameters (page and product_id), too.

Any ideas on how to accomplish this?

Here's my complete virtual host configuration:

Any pointers would be very much appreciated.

Cheers, Nick
Openstream Internet Solutions

Posted at Nginx Forum:,77780,77780#msg-77780

More information about the nginx mailing list