Automatically redirect http To https Request

HTTP stands for HyperText Transport Protocol, which is just a fancy way of saying it’s a protocol (a language, in a manner of speaking) for information to be passed back and forth between web servers and clients.

You really don’t need to know what it all stands for; the important thing is the letter S which makes the difference between HTTP and HTTPS. The S (big surprise) stands for “Secure”.

There are many ways to achieve the redirection of all http request to https. Let us see one by one

1. we can configure it in deployment descriptor (web.xml). In the deployment descriptor we can mention every urls are secure.

HTTP Resources from Menu



The transport-guarantee element is what move the request to a secure location. It can have three values :

* NONE – this is the default unless explicitly stated
* INTEGRAL – data must be sent in a way that so that it cannot be changed during transmission
* CONFIDENTIAL – data must be sent in a way that it cannot be viewed during transmission (bascically, data is encrypted using SSL)

But when I discussed with Paramesh, he told me that this will lead to increase the load of the server because every url will redirect this.

2. We can configure this in server as well

3. We can set by using java script use this in your pages.

More Here



  1. I have read your blog its very attractive and impressive. I like it your blog.

    Java Online Training Java EE Online Training Java EE Online Training Java 8 online training Java 8 online training

    Java Online Training from India Java Online Training from India Core Java Training Online Core Java Training Online Java Training InstitutesJava Training Institutes

  2. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in IBM IDENTITY MANAGEMENT, kindly contact us
    MaxMunus Offer World Class Virtual Instructor led training on IBM IDENTITY MANAGEMENT. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Saurabh Srivastava
    Skype id: saurabhmaxmunus
    Ph:+91 8553576305 / 080 - 41103383