rewrite url segment staging site and live site

caleboconnell nginx-forum at nginx.us
Wed Jun 13 16:31:35 UTC 2012


The following worked.  Thanks for helping me with this.  Hopefully it
answers another newbie's question someday. 

 location ^~ /old {
    rewrite ^/old(.*)$ /new$1 permanent;
  }

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,227464,227499#msg-227499



More information about the nginx mailing list