apache hide index.php

<Directory "D:/usr/local/www">
    AllowOverride all
    Options +FollowSymLinks +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
</Directory>

 

RewriteEngine on   
RewriteCond $1 !^(index.php|images|robots.txt)   
RewriteRule ^(.*)$ /index.php/$1 [L]

posted @ 2015-07-12 19:11  hao.ma  阅读(171)  评论(0编辑  收藏  举报