nmkiuhj 发表于 2013-5-6 14:34:06

添加URL后缀后,无法删除index.php。。。

我照着官网上写了.htaccess文件。
RewriteEngine on
RewriteCond $1 !^(index\.php|public|uploads|mapinfo\.xml|user_guide|robots\.txt)
RewriteRule ^(.*)$ index.php/$1

URL变成了这样:
http://localhost/project/products
正常!

之后又想添加URL后缀。
在config.php中修改:
$config['url_suffix'] = '.html';

然后把base_url()改成了site_url();

URL后缀是出来了,可是变成了:
http://localhost/project/index.php/products.html

怎么在添加URL后缀的同时删除index.php呢???

dickfu 发表于 2013-5-7 11:02:04

肯定是config.php里的$config['index_page'] = '';没有有改
页: [1]
查看完整版本: 添加URL后缀后,无法删除index.php。。。