CI 中index.php去掉的方法 (可用可不用) wamp环境下

1、

开启wamp中的 rewrite_module模式

CI 中index.php去掉的方法 (可用可不用) wamp环境下_第1张图片


2、改写htaccess文件

.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ /index.php/$1 [QSA,PT,L]
</IfModule>

3、

CI 中index.php去掉的方法 (可用可不用) wamp环境下_第2张图片

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory>




你可能感兴趣的:(CI 中index.php去掉的方法 (可用可不用) wamp环境下)