nase 发表于 2008-4-12 15:52:56

还有最重要的一点,Apache要安装rewrite模块。

le_el 发表于 2008-7-25 09:06:48

部分图片,JS链接还是不正常。

RewriteEngine on

RewriteCond $1 !^(index.php|images|css|js|robots.txt)

RewriteRule ^(.*)$ /ci_flottle/index.php/$1

有没有一个比较全面的做法的??

khtml 发表于 2008-8-25 23:21:45

回复 2楼 的帖子

请问一下 RewriteBase /my_dir/ 中的 my_dir是虚拟目录吗?
还有我按照第一种的做法 ,服务器解析不出来,错误日志是
Invalid command 'RewriteEngine'
请问楼主怎么解决?

Hex 发表于 2008-8-26 00:01:10

你有 mod_rewrite 吗?

zgs522 发表于 2008-8-28 10:52:59

怎么去掉,都按你的设置来做了,还是不行的

Hex 发表于 2008-8-28 11:46:45

之前的有错误,你重新设置一下。

lxylxy888666 发表于 2008-9-2 10:24:03

.htaccess这个文件是放在哪儿,
我放在与system同目录的地方的,然后把config里的参数index.php改为""
怎么还是不行哈

lxylxy888666 发表于 2008-9-2 11:20:18

谢谢HEX,弄明白了...:victory:

action2001 发表于 2008-10-9 14:38:52

每一个目录都要改一下吗?好麻烦

RewriteEngine on

RewriteCond $1 !^(index\.php|images|css|js|robots\.txt)

RewriteRule ^(.*)$ /ci_hy/index.php/$1

sam 发表于 2008-10-9 15:03:45

只要放在服务器上的某一个目录就行
页: 1 [2] 3 4 5 6 7 8 9 10 11
查看完整版本: 去掉 URL 中的 index.php