标签:
URL模式 | URL_MODEL设置 | 示例 |
普通模式 | 0 | http://localhost/?m=home&c=user&a=login&var=value |
PATHINFO模式 | 1 | http://localhost/index.php/home/user/login/var/value/ |
REWRITE模式 | 2 | http://localhost/home/user/login/var/value |
兼容模式 | 3 | http://localhost/?s=/home/user/login/var/value |
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule>
兼容模式:是用于不支持PATHINFO的特殊环境,URL地址是: http://localhost/?s=/home/user/login/var/value
标签:
原文地址:http://www.cnblogs.com/songziqing/p/4857386.html