首頁  >  問答  >  主體

nginx如何指定連結跳到其他頁面

例如這個連結 /index.php?route=product/category&path= , 我只想把造訪這個連結的使用者就跳到 /abc.html 頁面

這個如何寫? nginx

typechotypecho2669 天前1210

全部回覆(1)我來回復

  • 大家讲道理

    大家讲道理2017-06-28 09:30:48

    試試這個

    if ( $request_uri = "/index.php?route=product/category&path=" ){
        return 301  /abc.html;
    }

    回覆
    0
  • 取消回覆