为什么要返回404状态码,302不行吗?其实我觉得也是可以的,至于为什么不行,那咱们去问问李彦宏吧
fastcgi_intercept_errors on; proxy_intercept_errors on; error_page 404 /404.html; location =/404.html { root /var/www/html/; #这里也可以重定向到别的站点,而非本地 }
转载于:https://blog.51cto.com/danchaofan/1829708
为什么要返回404状态码,302不行吗?其实我觉得也是可以的,至于为什么不行,那咱们去问问李彦宏吧
fastcgi_intercept_errors on; proxy_intercept_errors on; error_page 404 /404.html; location =/404.html { root /var/www/html/; #这里也可以重定向到别的站点,而非本地 }
转载于:https://blog.51cto.com/danchaofan/1829708