Yesterday a netizen said oneself uses thinkphp to do the procedure cannot do 404 redirects.
I was pretty confused at the time. thinkphp do 404 is also quite simple, as long as in the configuration file with a ' error_page ' and '/404.html ' is good, how can not redirect it?
Firebug Open the other side of the site casually entered a wrong address found 404 code, and executed a jump locaction:/404.html, but the page is completely blank, and does not display the settings of the 404 page.
At that time to understand what the situation, old man also encountered such problems, Google turned the N-circle to solve. Just add a fastcgi_intercept_errors on the nginx.conf configuration file ; it's OK. If not, whether it is error_page or nginx 404 jump can not be displayed normally (access to a nonexistent PHP page may display "no input file specified.") )。
ngnix+fastcgi+thinkphp3.2 404 Redirect Problem