Redirect Traffic From HTTP to HTTPS

To redirect from HTTP to HTTPS, follow the steps below in the LoadMaster Web User Interface (WUI):

  1. Create a Virtual Service on the IP address you use for HTTPS on port 80. This service will act as a redirector and does not need Real Servers.
  2. Once created, on the Virtual Service modify screen, expand the Advanced Properties section.
  3. In the Not Available Redirection Handling section, select 302 Found as the Error Code.
  4. Enter the URL to redirect to in the Redirect URL text box. Click Set Redirect URL. You may use the wildcards %h and %s to represent the requested hostname and Uniform Resource Identifier (URI) respectively.

Here are some examples:

Redirect URL: https://%h%s
http://example.com/path/to/file.ext -> https://example.com/path/to/file.ext

Redirect URL: https://%h
http://example.com/path/to/file.ext -> https://example.com

Redirect URL: https://example.com/redirect/path
http://example.com/path/to/file.ext -> https://example.com/redirect/path

Was this article helpful?

2 out of 2 found this helpful

Comments

Avatar
jmartinez

Works like a charm. With this we don't need to manage redirection on the IIS server when using enhanced SSL certificates, which have expensive licensing costs. We just intall the SSL Cert on the Kemp LB. regards, Javier Martínez

Avatar
andreas.bahnmann

I noticed that the redirect URL is limited in its characters.
Can you extend this in the next firmware?

Avatar
Derek Kiely

Hi Andreas,

I have created a ticket for your request. Our support team can confirm and assist with a feature request.

Avatar
michael.schindler

My redirect would be
http:\\example.com\specificpath ---> http:\\example1.com\specificpath
The host name is the only thing that changes. would the redirect be:

http://example1%s ?