nginx去掉url中的index.php
来源:互联网 发布:女健身教练 知乎 编辑:程序博客网 时间:2024/06/08 09:38
配置Nginx.conf在你的虚拟主机下添加:
location / {
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php/$1 last;
}
}
如果你的项目入口文件在一个子目录内,则:
location /目录/ {
if (!-e $request_filename){
rewrite ^/目录/(.*)$ /目录/index.php/$1 last;
}
}
0 0
- nginx去掉url中的index.php
- nginx去掉url中的index.php
- CI在nginx环境下去掉url中的index.php
- ThinkPHP 在nginx环境下去掉URL中的index.php
- 去掉 URL 中的 index.php
- [PHP]去掉CodeIgniter URL中的index.php
- magento 去掉网址 url 中的 index.php
- ThinkPHP去掉URL中的index.php
- Codeigniter(CI) 去掉 URL 中的 index.php
- 去掉CodeIgniter URL中的index.php
- 去掉CodeIgniter URL中的index.php
- CodeIgniter框架去掉url中的index.php
- 去掉CodeIgniter URL中的index.php
- magento 去掉网址url中的index.php
- 去掉CodeIgniter URL中的index.php
- 去掉CodeIgniter URL中的index.php
- 去掉CodeIgniter URL中的index.php
- thinkPHP如何去掉url中的index.php
- 小鑫去爬山
- java个人笔记之线程
- spring-batch使用
- 欧几里得算法求最大公因数
- GTA5详尽画质选项分析及效果对比。量力而行,适合自己的才是最好的
- nginx去掉url中的index.php
- 基于BIO的Java Socket通信
- HAWQ 权限 (用户/角色)-
- Codeforces Round #404 (Div. 2) A&B
- Bad format for Timestamp '1' in column 12.错误
- 数据结构之队列(链式存储)
- L2-004. 这是二叉搜索树吗?
- mysql数据库的简单操作
- Android中的TCP/IP协议,Socket,Http协议间的关系