And check the Rewrite feature:
Now we can configure the feature. This process has three steps:
- Create a Rewrite Action.
- Create a Rewrite Policy (and link the Action to the Policy).
- Bind the Rewrite Policy to the virtual server in question. In our case, that would be lb_vs_OWA.
In the AppExpert section of the web-based management interface, we go to the following section and click on Add:
To the right of the screen (continued from the screenshot above), click on "Expression Editor":
Click on "Select" and then select the options illustrated in the screenshots below:
The result should be:
Click on "Done"
We click on "Create" (above) and should have what follows for the Rewrite Action:
As for the Rewrite Action, I will open the Expression Editor (continuation of the screenshot above but further to the right)...
And enter the following:
Once finished, we click on "Done":
Contrary to the creation of a Rewrite Action, we do not need to add text to the Rewrite Policy. We can simply click on "Create":
This should be the result:
NetScaler > Traffic Management > Load Balancing > Virtual Servers
In the menu to the right, click on "Policies" (yes, we will find the Rewrite Policy we just created and bind it to the virtual server):
Now the Policies section is in the column to the left. Click on the plus sign to bind the Rewrite Policy to the virtual server:
Next, I browse to add the Rewrite Policy...
I check the "rw_pol_OWA" policy and click on "Select":
I then click on "Bind":
Does the URL rewrite function?
I enter the incomplete URL in Internet Explorer (without /owa)...
And the NetScaler adds "/owa" as configured: