Jump to content
Welcome to our new Citrix community!

Issues with rewrite/transform of URL on Sharepoint based web app

Vladislav Nikolov

Recommended Posts

Hello everyone!

Since some time I am scratching my head on certain issue with Sharepoint based web app that I need to make available to external Internet users via Netscaler ADC.

Everything with the basic configuration is OK, but there is certain detail that is preventing us from making it available for users.
When I click on a document link inside I am being provided a link that cannot be resolved by the external user in its browser as its link to the internal document store service.

I have the external document service available on Netscaler also - so all I need is to do URL transformation of the requests from te internal address to the external one..or so I was thinking...

I used an URL transformation profile with the following parameters:


Request URL from:



Request URL into:



Response URL from:



Response URL into:



Cookie domain from



Cookie domain into



The Policy this profile is bound to is having configured expression HTTP.REQ.HOSTNAME.EQ("documentsiteexternal.external.domain)..
This does not seems to work for me and no matter if I used only hostnames without protocol http(s):// in front.. Client has configured alternate access mappin for Sharepoint.
I am trying to think that there may be some other configuration problem that prevents me from having this policy working...If i remember correctly - HTTP compressed response from web server are not supported when doing rewrite/transformation..?!

Can you help with some points on what may be the issue? How do you cope with similar situation when have load balanced Sharepoint with Netscaler?

Link to comment
Share on other sites

Try changing the Policy Expression to 'true' (temporarily), and only configure some of the parameters of the Transform Action. On many Netscaler versions the GUI for transform actions is bugged and causes settings to not apply correctly. I would avoid using the GUI, if possible.


Example through CLI:

add transform profile URL-TPR-SHAREPOINT
add transform action URL-TPA-SHAREPOINT-01 URL-TPR-SHAREPOINT 100
set transform action URL-TPA-SHAREPOINT-01 -resUrlFrom documentsiteinternal -resUrlInto documentsiteexternal.external.domain

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...