laravel框架去掉index.php

apache中,在网站的Directory中加下如下命令
RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule (.*) /index.php/$1 [L]

posted @ 2015-06-21 21:02  szphper  阅读(1201)  评论(0)    收藏  举报