CodeIgniter 中英文搜索引擎:
返回列表 发帖
好贴,解决了我的问题!顶顶!

TOP

解决问题了,谢谢大家~!

TOP

CI  的 rewrite  这东西一般是这样写, 但是我也碰到不少,需要另外写法的 情况,

TOP

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|images|js|css|robots\.txt)
RewriteRule ^(.*)$ /CodeIgniter/index.php/$1[L]
</IfModule>
php info 也显示mod_rewrite

TOP

但是URL 还是有index.php 这时怎么回事?

TOP

查看 apache 手册,这问题和 CI 无关,CI 没有 rewrite 一样可以使用。
QQ: 49489680
MSN: zhaochang_tj AT hotmail DOT com
搜索: http://search.codeigniter.org.cn

TOP

贴下,我的
<IfModule mod_rewrite.c>
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
Options -Indexes
Options +FollowSymLinks
#允许解析文件中的SSI指令
Options +Includes
#定义404,500错误页面
ErrorDocument 404 /404.htm
ErrorDocument 500 /404.htm
#定义目录索引页面
DirectoryIndex index.php
order deny,allow
RewriteEngine on
#设置根目录
RewriteBase /np/
#去掉链接地址中index.php字符串
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php|images|robots\.txt)
#RewriteCond $1 !^(index.php|images|robots\.txt)#排除的目录和文件类型
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

TOP

我都感觉不去也没什么不好吧!哈哈。。
活着就要努力折腾,以证明自己还活着!

TOP

我用的
姜运涛 发表于 2007-11-7 15:00




我用这个就OK。非常感谢啊!

TOP

试验了好久,配置都不成功,有没有大虾能远程把那个我看看问题在哪里!
人不犯贱枉为人

TOP

返回列表