10-26-2011 08:11 AM
Response from community member: Rudolph
Hi Owen,
Thanks for the response, I will give it a go.
Regards,
10-26-2011 08:10 AM
Hi Rudolph,
Use http.redirect( "/" ) to force your client browser to re-request the resource using the new URL
Regards,
10-26-2011 07:49 AM
Hi
I know it is possible to do a redirect from http://www.mycompany.com/newserver to mynewserver.com The vanity redirect will still display http://www.mycompany.com/newserver even though I am on the home page for mynewserver.com
Below is the code for achieving this:
$hh = http.gethostheader(); $path = http.getpath(); if( $hh == "www.mycompany.com" && $path == "/newserver" ) { http.setHeader( "Host", "www.mycompany.com" ); http.setPath( "/" ); pool.use( "POOL-newserver" ); }
When I start browsing the site, the url changes to http://newserverwich is normal behaviour.
I was wondering if it is possble to mask http://newserver in such a way that it will keep on displaying the vanity redirect on the user's browser.
© Copyright 2012 Riverbed Technology. All rights reserved Riverbed.com | Contact Us | Technical Support | Terms & Conditions | Privacy Policy