RewriteCond $1 !^(index\.php|system\.php|images|skin|js|ls|swfupload|attachment|application|robots\.txt)
RewriteRule ^(.*)$ /fx/index.php/$1
config.php里的$config['index_page'] = '';
我的程序是在apache指定目录/fx/目录
你可以根据你的目录来更改RewriteRule ^(.*)$ /fx/index.php/$1 中的fx
还有别忘了开启AllowOverride 为all
页:
1
[2]