Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

Perform a hostname redirect

 

Information

 

Summary:

How to perform an FQDN redirect.

Environment:

Product: LoadMaster

Version: Any

Platform: Any

Application: Any

Question/Problem Description:

Want to redirect non-FQDN requests to the FQDN URL of specific sites such as http://server to http://server.domain.com
 

Steps to Reproduce:  
Error Message:  
Defect Number:  
Enhancement Number:  
Cause: Need to redirect traffic based on hostname.
Resolution:

This can be done in a few different ways. The redirect can visible to the user in the web browser, as well as invisible.

1. To perform a visible redirect, do so by setting a "Not Available Redirection Handling" URL.
 
2. To do this, create a content matching rule, which matches on the incoming hostname. (/^server$/) and set this to fail on match.  These rules can only be applied on Services in which SSL Acceleration is enabled.  
 
Host match rule: https://support.kemptechnologies.com/hc/en-us/articles/115004181826-How-to-configure-Content-Rules-Examples-Included-#Match%20on%20Host
 
3. Then navigate to the relevant VS, and apply the rule under Advanced Properties > HTTP Selection Rules, and add the desired redirect to http://server.domain.com under "Not Available Redirection Handling"
 

Content_Match_Rule.PNGSelection_Rules.PNG


 
Workaround:
  • Another way to accomplish this would be an invisible redirect. This can be accomplished simply by creating a Replace Header content rule.
  • Rule type: Replace Header
    Header: Host
    Match String: /^www\.domain\.com$/
    Replace with: www.newdomain.com
Notes:

https://support.kemptechnologies.com/hc/en-us/articles/115004181826-How-to-configure-Content-Rules-Examples-Included-#Change%20Host

https://support.kemptechnologies.com/hc/en-us/articles/115004181826-How-to-configure-Content-Rules-Examples-Included-#Match%20on%20Host

 


Was this article helpful?
0 out of 0 found this helpful

Comments