apache 访问www.a.com/index.php/index 去除index.php
    打开 D:\xampp\apache\conf\http.conf
<Directory "D:/xampp/htdocs">
     #
     # Possible values for the Options directive are "None", "All",
     # or any combination of:
     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
     #
     # Note that "MultiViews" must be named *explicitly* --- "Options All"
     # doesn't give it to you.
     #
     # The Options directive is both complicated and important.  Please see
     # http://httpd.apache.org/docs/2.4/mod/core.html#options
     # for more information.
     #
     Options Indexes FollowSymLinks Includes ExecCGI
     #
     # AllowOverride controls what directives may be placed in .htaccess files.
     # It can be "All", "None", or any combination of the keywords:
     #   AllowOverride FileInfo AuthConfig Limit
     #
     AllowOverride All
     #
     # Controls who can get stuff from this server.
     #
     Require all granted
 <IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteBase /
  #不显示index.php
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule  ^/?(.*)$ /index.php?%{QUERY_STRING} [L,NC]
   #RewriteRule ^(.*)$ index.php?$1 [QSA,L]
  </IfModule>
 </Directory>