URL路由规则冲突问题,求解!急!

浏览:442 发布日期:2013/12/23 分类:求助交流 关键字: 二级域名 URL路由规则
URL如下:
product.xxx.com/beijing
product.xxx.com/shanghai
...
news.xxx.com/beijing
news.xxx.com/shanghai
...
相关规则如下:'/^beijing$/'     => 'product/pid=1',
'/^shanghai$/'     => 'product/pid=2',
问题来了,这些规则在product和news下都有效!请问我这个'/^beijing$/','/^shanghai$/'如何根据二级域名来匹配?
最佳答案
评论( 相关
后面还有条评论,点击查看>>