‘URL_ROUTER_ON‘ => true, //开启路由
1 ‘URL_ROUTE_RULES‘ => array(
2 ‘/^c_(\d+)$/‘ => ‘Index/List/index?id=:1‘
3 ),
#LoadModule rewrite_module modules/mod_rewrite.so把前面的警号去掉
2、AllowOverride None 将None改为 All //在APACHE里面去配置 (注意其他地方的AllowOverride也统统设置为ALL)
AllowOverride none 改 AllowOverride ALL
Options None
Order allow,deny
Allow from all
return Array(
‘URL_MODEL‘ => ‘2‘,
);
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]