根目錄不設為public出現500錯誤
我的根目錄并沒有設置到public里面(考慮到其他的項目),
然后每次的訪問路徑是:http://localhost:8080/My_load/tpInstallTest/public/index/Index/index
.htaccess里最后一行為:
RewriteRule?^(.*)$?My_load/tpInstallTest/public/index.php?/$1?[QSA,PT,L]
然后出現了
500 Internal Server Error
apache是已經修改好了的
求助各位幫忙看看是什么問題?
2018-04-17
將public下index.php和.htaccess文件移動到站點根目錄,修改相對路徑形式如:define('APP_PATH', __DIR__ . '/../app/')->define('APP_PATH', __DIR__ . '/./app/')即可;