Modifying The Root Request To a Specific Directory

Typically, it is better to configure this sort of redirect on your Real Servers, however you can use header modification to achieve the same result. To do this, follow the steps below in the LoadMaster Web User Interface (WUI):

  1. In the main menu, select Rules & Checking and Content Rules.
  2. Click Create New.
  3. Use the following settings for the rule.

    Rule Name: Rewrite_Root
    Rule Type: Modify URL

    Match String: ^/$
    Modified URL: /redirect/to

  4. Click Create Rule.
  5. In the main menu, select Virtual Services and View/Modify Services.
  6. Click Modify on the relevant Virtual Service.
  7. Expand the Advanced Properties section.
  8. Click Show Header Rules.
  9. In Request Rules, select the relevant rule and click Add.

By matching “/” and rewriting it to the desired value, you can force requests to a certain resource or directory.

Was this article helpful?

1 out of 1 found this helpful

Comments