Welcome! Log In Create A New Profile

Advanced

Convert 302 to internal redirect

October 28, 2009 10:49AM
Hi

I have the following redirect working for a wordpress install:

[code]
rewrite ^/([^/]+)/product/([^/]+)/?$ http://$host/$1/index.php/product?prodname=$2 redirect;
[/code]

The 'obvious' transformation that I have tried is:
[code]
rewrite ^/([^/]+)/product/([^/]+)/?$ /$1/index.php/product?prodname=$2 last;
[/code]

But this results in a WP 404 page.

What nginx-fu am I missing?
Subject Author Posted

Convert 302 to internal redirect

miradev October 28, 2009 10:49AM

Re: Convert 302 to internal redirect

miradev October 28, 2009 11:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready