在apache直接访问thinkphp框架里index.php页面的链接,报错
The requested URL /index.php was not found on this server.路径怎么改啊,
index.php代码
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',True);
define('HTML_PATH', '.');
// 定义应用目录
define('APP_PATH','./Application/');
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';
// 亲^_^ 后面不需要任何代码了 就是如此简单
控制台信息
GET http://localhost/Public/css/bootstrap.min.css
index.php:9 GET http://localhost/Public/css/home/main.css
index.php:17 GET http://localhost/Public/images/logo.png 404 (Not Found)
index.php:120 GET http://localhost/Public/js/jquery.js
index.php:121 GET http://localhost/Public/js/count.js
index.php:33 GET http://localhost/upload/2016/03/13/56e51fc82b13a.png 404 (Not Found)
feiyanger