Forum Discussion
Robert_Pagano_7
Nimbostratus
Aug 13, 2010immediate redirect when client attempts to access an HTTPS URL that will be going away
This is probably a silly question but I am going to ask it anyway ...
We have a HTTPS site that we will be retiring in the near future.
We want to redirect clients who attempt to browse to that site...
naladar_65658
Altostratus
Aug 13, 2010That is a good question. You would use the when HTTP_REQUEST syntax and use the http::redirect command. Something like this:
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] contains "your.websitename.com")} {
HTTP::redirect "https://www.yournewwebsitename.com[HTTP::uri]"
}
}
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
