博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
THINKPHP短链接设置方法(路由设置)
阅读量:7157 次
发布时间:2019-06-29

本文共 348 字,大约阅读时间需要 1 分钟。

//路由设置(短链接设置)

'URL_ROUTER_ON' => true,
'URL_ROUTE_RULES' => array(
'log' => 'Login/index',
'admin' => 'Login/admin',
'reg' => 'Login/register',

'c/:id' => 'Index/index/user'

'/^C_(\d+)$/' => 'Index/index/user?id=:1'

),

长链接:http://localhost/index.php/'Index/index/user/c/9

缩短成以下:

短链接:http://localhost/index.php/c/9

 

短链接:http://localhost/index.php/C_9

转载地址:http://shhgl.baihongyu.com/

你可能感兴趣的文章
ORACLE基本知识:表分区
查看>>
Windows下Eclipse 安装 android maven插件教程
查看>>
简明vim练级攻略
查看>>
slidingmenu使用说明
查看>>
nginx配置摘要
查看>>
传输音频
查看>>
CentOS6 图形界面(gnome)安装
查看>>
CMakeLists 可以设置的参数
查看>>
Android 6.0 解决Recyclerview 在 Scrollview 中不能高度自适应问题
查看>>
WebView Cache 缓存清除
查看>>
spring boot 源码分析(九) 事件机制 之 BootstrapApplicationListener
查看>>
Android实现号码归属地查询
查看>>
Python 爬虫实现
查看>>
java日期循环
查看>>
我的友情链接
查看>>
HttpClient调用wsdl协议
查看>>
Ansible 必须安装sshpass计划(you must install the sshpass program)
查看>>
我的友情链接
查看>>
三剑客之sed牛刀小试(二)
查看>>
查询DB version
查看>>