Automatically forward users of a loadbalanced StoreFront server to /Citrix/StoreWeb


This question was asked by one of my students during one of my last NetScaler CNS 207 classes. It should not be a difficult problem.

So what do we need to do?

  • rewrite requests to /Citrix/StoreWeb.
  • filter on requests without URL specified.
  • bind it to the load balancing server.

(there is also a 2nd way using a responder policy, but I preferred the rewrite policy)

The rewrite action:

we locate rewrite policies
NetScaler Rewrite Actions

First we add an action, so click action and then add.

NetScaler Rewrite Actions

we create a REPLACE action. We replace the URL (HTTP.REQ.URL) by the store address (“/Citrix/StoreWeb”)

Next thing will be the rewrite policy:

NetScaler Rewrite Actions

We bind our action and filter on requests with an empty URL (HTTP.REQ.URL.EQ(“/”)).

Finished! Just bind this policy to your load balancing server. It will do the trick for you!

About the author

Johannes Norz

Johannes Norz is a Citrix Certified Citrix Technology Advocate (CTA), Citrix Certified Instructor (CCI) and Citrix Certified Expert on Application Delivery and Security.

He frequently works for Citrix international Consulting Services and several education centres all around the globe.


By Johannes Norz

Recent Posts

Recent Comments