codeigniter 3.0 nginx 去除index.php
2016-04-26 00:00
288 查看
摘要: codeigniter 3.0 nginx 去除index.php
因为要配合泰分活动方,需要把index.php去除调,NG配置代码如下:
location /
{
index index.php;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?$1 last;
break;
}
}
因为要配合泰分活动方,需要把index.php去除调,NG配置代码如下:
location /
{
index index.php;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?$1 last;
break;
}
}
相关文章推荐
- nginx安全优化之隐藏版本
- 在mac上安装nginx
- [laravel 折腾改用nginx]--PS:顺带改下文件夹及其子文件的用户权限
- Nginx简单安装
- nginx 多个站点配置
- nginx的SSL配置模板
- centos7安装并配置nginx+php
- CentOS 6.5 安装 Nginx 1.7.8 教程
- 搭建nginx与安装vsftpd提示530 Login incorrect
- nginx 编译详细参数
- nginx 错误记录
- centos 源码安装Nginx
- 将nginx做成服务并开机启动
- centos php nginx 添加到service
- CentOs + Nginx + php-fpm + MySql 依赖库安装
- centos-nginx 安装
- Ubuntu 16.10下源码安装nginx的步骤
- nginx动静分离
- Win7下Nginx的安装与配置
- 最完美解决Nginx部署ThinkPHP项目的办法