Welcome! Log In Create A New Profile

Advanced

/transfer leads to 301

Posted by mschipperheyn 
/transfer leads to 301
July 04, 2011 08:27AM
Hi,
I have a bit of a weird problem. I have not configured any 301s, but I just deployed a new page with a GET and POST option for the same url. When I post to this page nginx redirects me to the GET for the same page with a 301.
The url structure for this page is:
http://mydomain/brasil/BR_en/editor/offer/3/changeowner/

I use nginx 1.0.4 and a reverse proxy cache.

Any ideas?

Kind regards,

Marc
Re: /transfer leads to 301
July 04, 2011 08:32AM
I realize now that I have a rewrite for this
location / {
keepalive_timeout 30;
rewrite ^([^.]*[^/])$ $1/ permanent;
try_files $uri @proxy;
}

This must be the problem. Rewriting obviously doesn't take into account post requests? Is this a bug?

Marc
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready