如题,nginx or apache
|
kmvanJan 31, 2015
1
G参数不就是了吗
|
|
wqlJul 21, 2015
3
这段代码也许会有所启发。
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f # ===================== RewriteRule ^bj\/(.*)$ index.php/$1&city=bj [QSA,PT,L] RewriteRule ^sh\/(.*)$ index.php/$1&city=sh [QSA,PT,L] RewriteRule ^gz\/(.*)$ index.php/$1&city=gz [QSA,PT,L] # ===================== RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] </IfModule> |