KB: 00002006
Last updated
Was this helpful?
Last updated
Was this helpful?
The client wants to redirect its HTTP sites to the HTTPS site temporarily.
The client can achieve the above requirement by utilizing the redirection Rule feature of the SLB.
Steps to Solve :-
Step 1 :- Login into Haltdos console.
Step 2 :- Go to Stack > SLB>Listeners>Rules>Redirection rule>Add rule>Save changes.
Step 3 :-The below image is showing when the redirection rule is not implemented.
Step 4 :-The below image is showing the temporary redirection of HTTP site to HTTPS site through the redirection rule.
Step 5 :-As client can observe, the redirection rule in SLB is temporarily redirecting traffic that is coming on HTTP site to HTTPS site with the status code of 302, as per the settings made in the redirection rule.
The client wants to redirect its HTTP sites to the HTTPS site permanently.
Step 1 :- The above scenario can be achieved by setting the redirection rule with the response code of 301 : Permanent Redirect
Step 2 :- As client can observe, they are getting the expected response with status code 301, as per the set configuration.
Note: Please ensure to clear your cached data from browser to revert back from permanent redirect, as a local copy gets saved in cache, and will keep redirecting even if the rule is deleted from the SLB GUI.