All files from this thread

File Name File Size   Posted by Date  
2.1 KB open | download Akins, Brian 08/05/2011 Read message
Akins, Brian
August 05, 2011 08:00AM
Use a map :

map $uri $new_url {
defau;t 0;
/old/url /new/url
/1 /new/1;
}


then in your server config:

if ($new_url) {
rewrite ^ $new_url permanent;
}



_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - (2.1 KB)
Subject Author Posted

d

zflairz August 04, 2011 11:50PM

Re: d

David J August 05, 2011 12:56AM

RE: d Attachments

Akins, Brian August 05, 2011 08:00AM

Re: RE: d

zflairz August 05, 2011 09:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 272
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