The requested URL Not Found问题
2015-09-15 01:27
369 查看
遇到这么一个问题:
最近刚转到linux下工作
在本地运行localhost下的thinkphp程序时,出现
一开始以为是权限问题,把目录以及文件权限都改为777依然不起作用
后来发现是rewrite问题,解决步骤如下:
1.开启apache的rewrite模块
2.在配置文件apache2.conf将所有的AllowRewrite None都改为AllowRewrite All
3.在项目所在目录下,新建.htaccess文件,写入
4.重启apache,问题解决!
最近刚转到linux下工作
在本地运行localhost下的thinkphp程序时,出现
一开始以为是权限问题,把目录以及文件权限都改为777依然不起作用
后来发现是rewrite问题,解决步骤如下:
1.开启apache的rewrite模块
2.在配置文件apache2.conf将所有的AllowRewrite None都改为AllowRewrite All
3.在项目所在目录下,新建.htaccess文件,写入
<IfModulemod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
4.重启apache,问题解决!
相关文章推荐
- UIScrollView 实践经验(转)
- [Android UI开发] Android 性能调优点
- [Android UI开发] Android中处理崩溃异常
- uestc 449(扫描线)
- UIView 子界面的处理
- iOS UIImage UIImageView 展示图片 不变形 处理
- java常用集合类:Deque,ArrayList,HashMap,HashSet
- ArrayAdapter requires the resource ID to be a TextView问题
- 【LeetCode 232: Implement Queue using Stacks】
- Android 5.1 SystemUI 之 Status Bar 加载流程
- uva 11995 I Can Guess the Data Structure!
- ZOJ 2747 Windows Message Queue
- 约束,在ios8 没问题,在ios7崩溃的问题,UItextField
- 利用UIScrollView实现几个页面的切换
- UICollectionView简介
- Android Bluetooth4.0(BLE是Bluetooth Low Energy的简称) 官方API
- 限制UITextView中的字数
- ugui脚本添加button相应事件
- UIAlertView使用全解
- Implement Queue using Stacks