wamp: httpd-vhost.conf
<VirtualHost *:80> ?ServerName localhost ?ServerAlias localhost ?#DocumentRoot "${INSTALL_DIR}/www" ?#<Directory "${INSTALL_DIR}/www/"> ?DocumentRoot "C:\JabinDoc\php_www" ?<Directory "C:\JabinDoc\php_www"> ???Options +Indexes +Includes +FollowSymLinks +MultiViews ???AllowOverride All ???Require local ?</Directory></VirtualHost><VirtualHost *:80> ?ServerName php.test.com ?ServerAlias php.test.com ?DocumentRoot "C:\JabinDoc\php_www\ci" ?<Directory "C:\JabinDoc\php_www\ci"> ???Options +Indexes +Includes +FollowSymLinks +MultiViews ???AllowOverride All ???Require local ?</Directory></VirtualHost>
ci: 根目录下.htaccess
RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php/$1 [L]
ci的url去除index.php
原文地址:https://www.cnblogs.com/maoriaty/p/9058599.html