[Windows VPS] nginx规则问题指教 只看楼主

加了下面的代码之后... 为什么a.net域名首页会自动跳转带index.php的尾巴
照道理a.net是不作任何处理吧?

  1. server_name www.a.net www.b.com;

  2. if ($host ~* www.b.com) {
  3. set $iftmp Y;
  4. }
  5. if ($http_user_agent !~ "googlebot") {
  6. set $iftmp "${iftmp}Y";
  7. }
  8. if ($iftmp = YY) { rewrite ^/(.*) http://www.a.net/$1 permanent;
  • 2# se7en
  • 2016-8-31 16:09:48
路过 帮顶
  • 3# MCMC
  • 2016-8-31 18:13:01
有木有大神指教下