ThinkPHP5 怎樣去掉地址欄public

將public目錄下的index.php移入項目根目錄,並修改index文件中路徑如下 // 定義應用目錄 define('APP_PATH', __DIR__ . '/application/'); // 加載框架引導文件 require __DIR__ . '/thinkphp/start.php'; 注意:一定一定不要在/application/前面加點,即 ./application/ /
相關文章
相關標籤/搜索