url重写处理多域名问题
求一个apache .htaccess文件
要求如下
1.默认
test.cn跳转到test.cn/index.php
2.特殊固定
wx.test.cn跳转到test.cn/wx/
gb.test.cn跳转到test.cn/gb/
3.随机非固定
demo1.test.cn跳转到test.cn/common/default/index?id=demo1
demo2.test.cn跳转到test.cn/common/default/index?id=demo2
这里的demo1和demo2是任意的,反正就是除了wx和gb,其他的三级域名都统一处理