Solution to php error 404: 1. Set the path of the root directory of apache or nginx configuration correctly; 2. Modify the wrong pseudo-static and reset the real path.
Recommended: "PHP Video Tutorial"
php error 404:
1. The http service component, that is, the root directory configured by apache or nginx is not the root directory path you think
2. The wrong pseudo-static may be turned on, causing the current address to be rewritten. Then the path you see is not the real path, and the rewritten address is incorrect, so 404
temporarily thinks of these two points, but no matter what the reason is, the path must be incorrect. .
The above is the detailed content of What to do if php error 404 occurs. For more information, please follow other related articles on the PHP Chinese website!