Redirect Web Interface on Citrix NetScaler with Rewrite function
November 12, 2010 20 Comments
When you install and configure Web Interface on Citrix NetScaler nCore you probably notice that there is no option to automatically go to the default Citrix XenApp page as you were used to in a Microsoft IIS install of the Citrix Web Interface. Once you have set up Citrix Web Interface and you add the newly created address in the browser you will get an “Invalid Path” notice. This would mean you (or your users) always would have to fill in the subdirs also.
Off course this can be nicely resolved with a Rewrite function within the Citrix NetScaler and here I will show you how to.
Command line version:
add rewrite action rw_ac_xenapp replace HTTP.REQ.URL “\”/Citrix/XenApp\””
add rewrite policy rw_pol_xenapp “HTTP.REQ.URL.EQ(\”/\”)” rw_ac_xenapp
bind lb vserver 10.13.14.21_80 -policyName rw_pol_xenapp -priority 100 -gotoPriorityExpression END -type REQUEST
Go to Rewrite –> Actions and click Add. Create the Action as in the screenshot below:
Click OK and go to Rewrite –> Policies. Create the Policy as in the screenshot below:
And the last step. Bind the newly created policy to the Web Interface Virtual Server:
Start a browser and visit the Web Interface address. There u go. Could not redirect faster then that you guys!