需求: 目录下,没有文件的全部 301 跳转到其他域名,如果有文件就执行 php
include enable-php.conf;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ http://****.com/$1 permanent;
}
}
可为什么就是不会跳转?对 nginx 不熟,大神帮忙下,谢谢
需求: 目录下,没有文件的全部 301 跳转到其他域名,如果有文件就执行 php
include enable-php.conf;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ http://****.com/$1 permanent;
}
}
可为什么就是不会跳转?对 nginx 不熟,大神帮忙下,谢谢