部分图片,JS链接还是不正常。
RewriteEngine onRewriteCond $1 !^(index.php|images|css|js|robots.txt)
RewriteRule ^(.*)$ /ci_flottle/index.php/$1
有没有一个比较全面的做法的??
回复 2楼 的帖子
请问一下 RewriteBase /my_dir/ 中的 my_dir是虚拟目录吗?还有我按照第一种的做法 ,服务器解析不出来,错误日志是
Invalid command 'RewriteEngine'
请问楼主怎么解决? 你有 mod_rewrite 吗? 怎么去掉,都按你的设置来做了,还是不行的 之前的有错误,你重新设置一下。 .htaccess这个文件是放在哪儿,
我放在与system同目录的地方的,然后把config里的参数index.php改为""
怎么还是不行哈 谢谢HEX,弄明白了...:victory: 每一个目录都要改一下吗?好麻烦
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt)
RewriteRule ^(.*)$ /ci_hy/index.php/$1 只要放在服务器上的某一个目录就行