Forum Discussion
Sri_Narasimha_11
Altostratus
Feb 28, 2020iRule for HTTP redirect from retired URL to new HTTPS URL
Hi Experts, I'm new to F5 and could someone please help. Here is what I'm trying to accomplish... We have a web site that is retiring and will be replaced with a new site. We would like to d...
Samir
MVP
Feb 28, 2020Try this iRule. It will work per your requirement. Let us know if any question
when HTTP_REQUEST {
if { [HTTP::host] equals "www.oldsite.com" } {
HTTP::redirect "https://www.newsite.com"
}
}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