I cannot redirect my non www domain version to www with MovedContextHandler, it does not have host to redirect to.
Both www.myhost.com and myhost.com point to my web server IP. When someone tries to open myhost.com he is still able to access my site that way. I want for his browser to receive 301 to www.myhost.com instead. It is important for search rankings as search engines must know myhost.com and www.myhost.com are one and the same.
As a bonus, when someone tries to access myhost.com/somepath/somepage.html I want a 301 to www.myhost.com/somepath/somepage.html
How do I proceed with that? Do I need to write my own handler or is there an easier way? Thanks!