Add support for subdomain

It's OK now for links with or without subdomain, means:
http://www.example.com = http://example.com