关于apahe 重写CI的问题
刚开始接触CI,很多东西不是太懂,简单的做了个网站,在从写url的时候遇到了问题。比如我有个域名http://test.ci.com/,是在本地配的。有一个方法
http://test.ci.com/index.php/welcome/test/43543
最后的是参数我想从写成http://test.ci.com/tao-23423.html 怎么都不行,我的apache的是这样写的
RewriteRule ^/tao-(+).html$ /index.php/welcome/test/$1 ,指向到默认的首页了
也试过把index.php 去掉,
http://test.ci.com/welcome/test/43543
访问正常。然后RewriteRule ^/tao-(+).html$ /welcome/test/$1 这样也不行 ,求救啊。
困扰我好几天了。
无需apache 配置CI的路由规则即可
估计是遇到了CI的路由二次解析 暗夜星辰 发表于 2012-7-12 11:24 static/image/common/back.gif
无需apache 配置CI的路由规则即可
估计是遇到了CI的路由二次解析
请问http://test.ci.com/index.php/welcome/test/43543 用路由能从写成这样吗
http://test.ci.com/tao-23423.html
交朋友 发表于 2012-7-12 11:27 static/image/common/back.gif
请问http://test.ci.com/index.php/welcome/test/43543 用路由能从写成这样吗
http://test.ci.com/tao- ...
路由不能帮你去掉index.php,剩下的可以 路过学习
页:
[1]