posted 7 years ago
Hi,
I have a web application using Java/Struts/Tomcat7.0 deployed on Windows server.
Currently my application is serverving both www and non-www version urls. i.e. both http://mydomain.com/somepage.html and http://www.mydomain.com/somepage.html.
I just want to redirect any url without www to the same url with www. For example if the user typed http://mydomain.com/somepage.html it should redirect to http://www.mydomain.com/somepage.html
I need to achieve this without impacting SEO.
Also what do you suggest redirecting all pages to www version.. or non-www version ?
Thanks in Advance.