ngnix+fastcgi+thinkphp3.2 404 Redirect Problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.