|
RewriteRule ^product{1}(.*)$ /index.php/shop/product$1 [L]
RewriteRule ^news{1}(.*)$ /index.php/article/news$1 [L]
RewriteRule ^(.*)$ /index.php/$1 [L]
报错,我想实现的效果是
判断url是否包含(product,news或其它一些条件)
如果是,就按特殊的处理
如果否,只去掉 index.php就成了
if(product)
{
指向/index.php/shop/product$1;
break;
}
else if(news)
{
指向/index.php/article/news$1;
break;
}
else
{
指向/index.php/$1;
} |
|