nginx 404自动跳转到首页

  sre

网站出现404页面不友好,出现404之后给自动跳转到首页去

“`bash
server {
location / {
error_page 404 = @sre-home;
}

location @sre-home {
   rewrite  .*  / permanent;
}

}

LEAVE A COMMENT

Captcha Code