I’m using spring security, and I want to force HTTPS for a few urls. However my cert is ona subdomain.
For example, if they hit http://www.mydomain.com/myaccount I would like them to be redirected to https://secure.mydomain.com/myaccount
What’s the best way to accomplish this with spring security?
Not sure if the most efficient way but
refer how to replace www in url for the second part