d

Akins, Brian Brian.Akins at turner.com
Fri Aug 5 11:56:35 UTC 2011


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;
}



-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2186 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20110805/2cd1f1b1/attachment.bin>


More information about the nginx mailing list