nginx url跳转
1、
if ($request_uri !~ ^/tg/001) {
rewrite ^.*$ /tg/001/index.html permanent;
}
2、
if ($request_filename !~ "(client\.php)|(\.(js|ico|gif|jpg|png|css))$") {
rewrite ^.*$ /index.php last;
}
3、图片服务器URL重写:
rewrite ^(.*)/u/([0-9]+)x([0-9]+)/([0-9]+)/(.*) $1/image.php?width=$2&height=$3&db_no=$4&filename=$5 last;
4、
rewrite ^/soft/([\d]+-[\d]+-[\d]+)/([\d]+)\.html$ /soft/network/apply/$1/$2.html last;
阅读(1818) | 评论(0) | 转发(1) |