重写规则 去掉URL地址里面的入口文件index.php

1.    <IfModule mod_rewrite.c>
2.    RewriteEngine on
3.    RewriteCond %{REQUEST_FILENAME} !-d
4.    RewriteCond %{REQUEST_FILENAME} !-f
5.    RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
6.    </IfModule>

posted @ 2014-08-25 15:29  nalasun  阅读(300)  评论(0)    收藏  举报