加了下面的代码之后... 为什么a.net域名首页会自动跳转带index.php的尾巴
照道理a.net是不作任何处理吧?
- server_name www.a.net www.b.com;
- if ($host ~* www.b.com) {
- set $iftmp Y;
- }
- if ($http_user_agent !~ "googlebot") {
- set $iftmp "${iftmp}Y";
- }
- if ($iftmp = YY) { rewrite ^/(.*) http://www.a.net/$1 permanent;