Forum Discussion
crocketv_18020
Nimbostratus
Feb 16, 2009Redirect and preserve HTTP referrer
Hello.. need some help with the following. You may see this question in a different thread but I was asked to post as a seperate question. thanks.
As prelude to upcoming installation I'...
hoolio
Cirrostratus
Feb 16, 2009Sorry... I thought you were asking a new question that wasn't related to the original post. To redirect requests from HTTP to HTTPS you can use a rule like this on the HTTP VIP:
when HTTP_REQUEST {
Redirect all requests to https://123.123.org/xlWebApp/
HTTP::redirect "https://123.123.org/xlWebApp/"
}
The above example will redirect all HTTP requests to the HTTPS URL, https://123.123.org/xlWebApp/.
As far as the Referer header, I'm pretty sure the browser will set the Referer header value to the URI of the request which generated the redirect. So if the first request is to http://www.example.com/first_page.html and the client is redirected to https://www.example.com/second_page.html, the Referer in the request to https://www.example.com/second_page.html will be http://www.example.com/first_page.html. I don't think there is a way to modify what the client sets the Referer header to.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects