Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

How to modify a request based on the sub-directory in the URL





How to capture what the sub-directory value is and replace the sub-domain (www) with that value.


Product: LoadMaster

Version: Any

Platform: Any

Application: Any

Question/Problem Description:

Need to change the sub-domain from www to what the sub-directory value is, and also keep the sub-directory in the URL, so, clients are routed to the appropriate web app.

Steps to Reproduce:  
Error Message:  
Defect Number:  
Enhancement Number:  
Resolution: To achieve the modification of changing a request from to the following must be done:
  • Create a content matching rule for each directory with the following match string: /^www.*\/directory/
  • Create a SubVS for that directory, apply the content rule to that SubVS, and set a 302 redirect to without adding real servers to that SubVS.
  • Ensure that the newly created content rules are placed above any more general content rules within Advanced Properites > Rule Precedence.
This will have the new request appear in the client browser.

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