This article mainly explains: After the thinkphp5 project is deployed online view-source: you can see the source code, but http shows the reasons for the blank page and the solution tutorial
Author: Ren Congcong
Date: April 17, 2023
thinkphp version 5.1
Description of the phenomenon:
The offline test environment shows that the interface can be seen.
After deploying to the online configuration, the page is blank.
Write in php echo 1232;die;
and you can see 1232
Problem 1. Pseudo-static
reason:
Pseudo-static rules are misconfigured, missing last;break; parameters.
Solution:
Use the correct pseudo-static below
for nginx
location / {
if