nginx 隐藏index.php
来源:互联网 发布:linux u盘启动 windows 编辑:程序博客网 时间:2024/06/05 21:07
今天同事问到这个问题....怎么隐藏index.php
nginx rewrite配置:
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; }}如果你安装在二级目录,Nginx的伪静态方法设置如下,其中domainname是所在的目录名称
location /domainname/ { if (!-e $request_filename){ rewrite ^/domainname/(.*)$ /domainname/index.php?s=$1 last; } }
阅读全文
0 0
- nginx 隐藏index.php
- nginx pathinfo 并隐藏index.php
- nginx 隐藏index.php 支持PATHINFO
- Nginx配置 隐藏入口文件index.php
- Nginx 服务器隐藏 index.php 配置
- thinkphp 隐藏index.php iis apache nginx
- wamp;phpstudy nginx隐藏index.php
- nginx重写url隐藏index.php
- Nginx 隐藏入口文件 index.php
- Nginx隐藏index.php和Pathinfo模式配置例子
- nginx配置pathinfo模式和隐藏index.php
- centos7 thinphp5 Nginx隐藏index.php和Pathinfo模式配置
- Nginx配置隐藏index.php和PATH_INFO支持
- Nginx配置隐藏index.php和PATH_INFO支持
- Nginx隐藏index.php和Pathinfo模式配置例子
- nginx多站点配置,以及隐藏index.php
- yii 隐藏index.php
- Yii隐藏index.php
- 【CVTE笔试题】数字分割
- 接口文档如何写
- 问题
- js设计模式和实践4
- 当一个线程进入一个对象的一个synchronized方法后,其他线程是否可进入此对象的其他方法?
- nginx 隐藏index.php
- printf 应用
- bitset 入门——HDU 5036,HDU 5313,HDU 4920,POJ 2443
- 乱序字符串
- LoadRunner录制手机APP脚本
- python 动态调用模块内的函数
- 静态代码块、构造代码块和构造方法的执行顺序
- 需求实现:点击用户评论列表项,弹出输入法并进行编辑回复功能
- ip子网划分实例