Jump to content
Welcome to our new Citrix community!

Netscaler Remove https from URL


Recommended Posts

Hello,

 

Is it possible to redirect requests from https to url without https so remove https from the URL and how can this be achieved.

 

https://navision://client:80/run?servername=EMPIRE_STRIKES&database=EmpireProductie&company= WS&target=Form 5098&view=SORTING(Field1)&position=Field1=0(T19-1174814)&servertype=MSSQL

 

should redirect to: (so only https: // should be removed

 

navision://client:80/run?servername=EMPIRE_STRIKES&database=EmpireProductie&company=WS&target=Form 5098&view=SORTING(Field1)&position=Field1=0(T19-

Link to comment
Share on other sites

Here is an example that redirects to  http://URL if it mathces the hostname

 

add responder action rp_action_301 respondwith  q{"HTTP/1.1 301 Moved Permanently\r\nLocation: http://URL/\r\n\r\n"}

add responder policy rp_pol_301 "HTTP.REQ.HOSTNAME.EQ(\"Hostname\")" rp_action_301

 

this is if you want to redirect to another URL without https.

Link to comment
Share on other sites

Thank you Mihai,

 

But the following link 

 

https://navision://client:80/run?servername=EMPIRE_STRIKES&database=EmpireProductie&company= WS&target=Form 5098&view=SORTING(Field1)&position=Field1=0(T19-1174814)&servertype=MSSQL

 

Must be change into the following with no HTTP because it is a DeepLink path

 

navision://client:80/run?servername=EMPIRE_STRIKES&database=EmpireProductie&company=WS&target=Form 5098&view=SORTING(Field1)&position=Field1=0(T19-1174814)&servertype=MSSQL

Link to comment
Share on other sites

Are you REALLY wanting a redirect (ie netscaler takes an HTTPS: request, and sends the request to HTTP:), or are you actually talking about rewriting a link in an outgoing page?

 

Whrere is that original "https://navision://client:80......." link coming from / going to? I'm having a problem understanding the context.

Link to comment
Share on other sites

  • 3 weeks later...

The "http://" part of the link is interpreted by the client as "make an http type of connection to.....". The request that then gets sent has no indication of "http://".....  

 

What you want is to tell the client "you need to use the 'navision protocol' to connect to....". This is a bit like when a browser gets sent an "ftp://...." link... the browser will use the FTP protocol to make the connection.

 

So, what you ACTUALLY need to do is to rewrite the OUTGOING link, to remove the "https:"..... so, you need a rewrite policy to look for enough of the link to uniquely identify it (as opposed to any OTHER https links there might be on that page), that invokes a rewrite action (which makes the actual change), then bind it to the RESPONSE side of that vserver.

 

 

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...