Is there any solution To add a 'www' when user requast site by typing mywebapp.net?
I'am deploying a web application and want to know how i can rewrite url for example
mywebapp.net to https://www.mywebapp.net.
I've set the in web.xml the transport guarantee as confidential and installed a certificate which is valid for www.mywebapp.net, but if someone requests mywebapp.net, the browser says that the certificate is not valid. So I want to redirect all incoming requests on mywebapp.net to https://www.mywebapp.net.
I think thats also enough to redirecting to http://www.mywebapp.net, because the GlassFish container, redirects to the https adress automatically due to the transport guarantee.