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