To redirect from HTTP to HTTPS, follow the steps below in the LoadMaster Web User Interface (WUI):
- 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.
- Once created, on the Virtual Service modify screen, expand the Advanced Properties section.
- In the Not Available Redirection Handling section, select 302 Found as the Error Code.
- 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