Welcome! Log In Create A New Profile


Permanent Redirect

April 21, 2010 04:18PM
Hi there,

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

location /phpshop {
rewrite ^ http://www.my-domain.com 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
Subject Author Posted

Permanent Redirect

openstream April 21, 2010 04:18PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 89
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready