想法:
http://abc.ccav.com rewrite 到 http://www.ccav.com/uid/abc
http://abc.ccav.com/article/index/index rewrite 到 http://www.ccav.com/article/index/index/uid/abc
http://abc.ccav.com/article/index/show/id/1 rewrite 到 http://www.ccav.com/article/index/show/uid/abc/id/1
http://abc.ccav.com/shop/index/index rewrite 到 http://www.ccav.com/shop/index/index/uid/abc
http://abc.ccav.com/shop/index/show/id/1 rewrite 到 http://www.ccav.com/shop/index/show/uid/abc/id/1
自己实际试了几下,都没成功,求大神指点
自己解决了
这是不重写,应该叫跳转,可以做301,当$host = 'abc.ccav.com' 时,^/(.*)$ http://www.ccav.com/$1 permanent; 思路就是这样的