Hi - I'm a newcomer to Brocade VTM's and traffic scripts in general and wonder if someone can offer some help with a trafficscript thats not behaving as I would expect. I have a requirement to perform a 301 redirect on an URL such as: Source: http://www.example.com/path/?query=something-here#fragment NOTE - there is a fragment identifier on the end of the query string. Destination: http://www.example.com/redirect/ A snippet from my trafficscript shows the workings of it. .. $path = http.getPath(); $qs = http.getRawQueryString(); .. if ((string.startsWithI( $qs, "query=something-here#fragment"))) { $myRedirect = $hostheader . "/redirect/"; http.sendResponse( "301 Found", "text/html", "", "Location: http://" . $myRedirect ); } } This results in you being sent to: http://www.example.com/redirect/#fragment So the redirect appears to work but it keeps putting #fragment on the end. I think this is because #fragment is not actually part of the query string itself. Does anyone know how this can be handled or just stripped off the redirect? Thanks in advance, Julian.
... View more