Modify URL rule with query string not working
Information
Summary: |
When attempting to perform a Modify URL content rule on the LoadMaster that includes a query (example: /index.html?id=1), and the web server is not returning the correct value or is returning a blank webpage, this article will cover a potential workaround solution. |
Environment: |
Product: LoadMaster Version: Any Platform: Any Application: Web Applications |
Question/Problem Description: |
If implementing the solution outlined in the following article (https://support.kemptechnologies.com/hc/en-us/articles/207772566-Implementing-a-URL-Modification-that-includes-a-query-string) does not yield the desired results, this article will provide an alternative workaround solution to using a Modify URL content rule. |
Steps to Reproduce: | |
Error Message: | |
Defect Number: | |
Enhancement Number: | |
Cause: | |
Resolution: | |
Workaround: |
Step 1: Create a new content matching rule to match on the pattern "/^\/$/" and select Fail On Match. Please see the example below: Step 2: Apply the rule created in Step 1 above as a HTTP Selection Rule under Advanced Properties on the Virtual Service:
Step 3: Set the Not Available Redirection Handling Error Code to "301 Moved Permanently" and add the required Redirect URL beneath that, including the string with the query: |
Notes: |
Additional guides: https://support.kemptechnologies.com/hc/en-us/articles/14337456680973-Content-Rules |