thinkphp가 오류를 보고하기 위해 public을 루트 디렉토리로 사용하는 문제 해결

public에서 .htaccess를 열고 내용을 직접 바꾸면 문제를 해결할 수 있습니다.

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{
    
    REQUEST_FILENAME} !-d
RewriteCond %{
    
    REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

추천

출처blog.csdn.net/qq_48082548/article/details/127915739