nanog mailing list archives

Re: Citrix Netscaler Rewrite Issue


From: Jonathan Matthews <contact () jpluscplusm com>
Date: Fri, 14 Jun 2013 17:19:11 +0100

On 14 June 2013 16:51, Jason Faraone <JFaraone () paulo com> wrote:
I've been sitting here frustrated for a bit this morning so hopefully someone here can shed some light...

I have a Citrix Netscaler appliance (v10.0) and I would like to rewrite a URL - essentially when someone visits 
www.example.com<http://www.example.com>, I would like to redirect them to 
www.example.com/pls/apex/f?p=103:1<http://www.example.com/pls/apex/f?p=103:1>

This seems to work well enough until I get to the question mark, at which point things fall  apart.

"The requested URL /pls/apex/f was not found on this server."

I don't think the problem is with the Netscaler or your escaping; I
think that whatever's serving www.example.com doesn't have a page for
/pls/apex/f and is quite correctly telling you this.

The part after the question mark is called the "query string", and
it's (usually) used to communicate parameters to a page - a page which
must already exist (except in very specific circumstances), without
the query string.

What happens if you "curl -v www.example.com"? Do you see the 30[23]
redirect coming back? If so, it's a server-side problem and not an
issue with the appliance.

Jonathan
--
Jonathan Matthews
Oxford, London, UK
http://www.jpluscplusm.com/contact.html


Current thread: