|
楼主 |
发表于 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 [L]
IIS上是这样
view sourceprint?
1 [ISAPI_Rewrite]
2 RewriteRule /(?:assets|files)/(.*) $0 [I,L]
3 RewriteRule /robots\.txt $0 [I,L]
4 RewriteRule /(.*) /index.php/$1 [I,L]
assets和files目录时可以通过url访问的,rotots.txt是可以通过url访问的.
然后修改config.php文件,$config['index_page'] = ""; |
|