【ThinkPHP】TP-四种url访问的方式_URL_MODEL
2014-12-30 09:18
369 查看
TP-四种url访问的方式
URL访问模式,可选参数0、1、2、3,代表以下四种模式:
0 (普通模式);
1 (PATHINFO 模式); /*默认*/
2 (REWRITE 模式);
3 (兼容模式)
0:http://localhost/index.php?m=模块&c=控制器&a=操作方法 [get模式]
1:http://localhost/index.php/模块[模块文件夹]/控制器/操作方法 [pathinfo模式] /*默认*/
2:http://localhost/模块[模块文件夹]/控制器/操作方法 [rewite重写模式]
3:http://localhost/index.php?s=/模块[模块文件夹]/控制器/操作方法 [兼容模式]
'URL_MODEL' => 1,
URL访问模式,可选参数0、1、2、3,代表以下四种模式:
0 (普通模式);
1 (PATHINFO 模式); /*默认*/
2 (REWRITE 模式);
3 (兼容模式)
0:http://localhost/index.php?m=模块&c=控制器&a=操作方法 [get模式]
1:http://localhost/index.php/模块[模块文件夹]/控制器/操作方法 [pathinfo模式] /*默认*/
2:http://localhost/模块[模块文件夹]/控制器/操作方法 [rewite重写模式]
3:http://localhost/index.php?s=/模块[模块文件夹]/控制器/操作方法 [兼容模式]
相关文章推荐
- thinkphp四种url访问方式详解
- ThinkPHP 常用配置 和 四种url访问方式
- TP-四种url访问的方式
- TP中的四种url访问方式
- thinkPHP四种URL访问方式(二)
- thinkphp四种url访问方式详解
- TP中的四种url访问方式
- thinkphp四种url访问方式详解
- thinkphp四种url访问方式详解
- thinkphp的四种控制器URL访问方式
- TP中的四种url访问方式
- thinkphp的四种控制器URL访问方式
- thinkPHP四种URL访问方式(二)
- tp-02 四种url访问的方式
- thinkphp四种url访问方式详解
- php访问url的四种方式
- nginx、TP框架实现兼容pathinfo和rewrite两种url访问方式
- ThinkPHP中pathinfo的两种模式、四种路径访问模式和URL重写
- ThinkPHP的四种URL模式 URL_MODEL
- nginx、TP框架实现兼容pathinfo和rewrite两种url访问方式