Skip to main content
Version: v7

KB: 1001


How to configure HTTP Redirection?

Problem Statement 1

The client wants to redirect its HTTP sites to the HTTPS site temporarily.

Solution

Steps to Solve:-

The client can achieve the above requirement by utilizing the redirection Rule feature of the WAF.

kb-1001

kb-1001

kb-1001

As one can observe, the redirection rule in WAF 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.

Problem Statement 2

The client requires to have a redirection rule for their HTTP website to HTTPS website with permanent redirection

Solution

Steps to Solve:-

The above scenario can be achieved by setting the redirection rule with the response code of 301 : Permanent Redirect.

kb-1001

kb-1001

kb-1001

As you can observe, We 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 WAF GUI.