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]

你可能感兴趣的:(apache)