Apache

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

RewriteRule ^(.*)$ index.php?r=/$1 [QSA,PT,L]

规则中的?r= r是可配置的分隔符通过var_pathinfo=>'r'配置

results matching ""

    No results matching ""