carboo 发表于 2010-7-31 17:08:04

有关CI的URL的问题

http://091503.0915.dodiphp.cn/LcnMall/admin/index.php/frameset大家啊请看上面的地址,我们要怎样做才能将其中的index.php,使其变成下面的模式http://091503.0915.dodiphp.cn/LcnMall/admin/frameset

ares333 发表于 2010-8-1 08:24:12

http://codehere.net/code_93.html
赶紧删帖吧,还写这么大字:@

carboo 发表于 2010-8-1 11:50:09

apache主机上是这样

view sourceprint?1 RewriteEngine on   

2 RewriteCond $1 !^(index\.php|assets|robots\.txt)   

3 RewriteRule ^(.*)$ /dirname/index.php/$1
IIS上是这样

view sourceprint?
1

2 RewriteRule /(?:assets|files)/(.*) $0

3 RewriteRule /robots\.txt $0

4 RewriteRule /(.*) /index.php/$1
assets和files目录时可以通过url访问的,rotots.txt是可以通过url访问的.

然后修改config.php文件,$config['index_page'] = "";
页: [1]
查看完整版本: 有关CI的URL的问题