有关CI的URL的问题
http://091503.0915.dodiphp.cn/LcnMall/admin/index.php/frameset大家啊请看上面的地址,我们要怎样做才能将其中的index.php,使其变成下面的模式http://091503.0915.dodiphp.cn/LcnMall/admin/frameset http://codehere.net/code_93.html赶紧删帖吧,还写这么大字:@ 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]