Create channel constraint to deal with channel subdomain routes

It closes  #414.

Thanks @devton.