ThinkPHP 去掉 public 和 index.php
去掉 public
将 public 里的 index.php 移动到根目录,并修改内容如下:
<?php
// 定义应用目录
define('APP_PATH', __DIR__ . '/application/'); //目录不一样
define('SITE_URL','http://xxx.com');
// 加载框架引导文件
require __DIR__ . '/thinkphp...
原创
2018-09-22 12:49:44 ·
2956 阅读 ·
0 评论