用户
 找回密码
 入住 CI 中国社区
搜索
查看: 158809|回复: 127
收起左侧

去掉 URL 中的 index.php

    [复制链接]
发表于 2017-9-13 16:27:49 | 显示全部楼层
Hex 发表于 2008-2-15 13:59
是的,但也需要根据你的目录情况进行修改!
具体你应该看看 apache rewrite 的相关手册!这是 apache 的问 ...

大神 我想问一下  为什么我的
RewriteEngine on   
RewriteCond $1 !^(index.php|images|robots.txt)   
RewriteRule ^(.*)$ /index.php/$1 [L]
这么写就不行会显示 没有文件
把第三行 改成 RewriteRule ^(.*)$ /index.php?/$1 [L]
就可以了  想请教一下  是什么原因

本版积分规则