|
发表于 2011-11-5 11:53:45
|
显示全部楼层
Hex 发表于 2011-11-4 15:56 
带 index.php 能访问有什么不好吗。。。。
如果不想 index.php 能访问,可以在规则里删除那个 index.php ...
是把.htaccess文件改成这样:
RewriteEngine on
RewriteBase /future/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(images|robots\.txt) //我把这里的index.php去掉了。
RewriteRule ^(.*)$ index.php/$1 [L] //这里去掉 index.php就无法访问啦
求指教 我新手!! |
|