Forum Discussion
Anthony_Santi
Nimbostratus
Dec 02, 2021Redirect customername.domain1.com/path/ to customername.domain2.com/path/
Hi, I am trying to find a solution for an upcoming environment replacement. We want the first part of the hostname to stay the same while replacing the domain name. We need to accept both domains f...
Dec 02, 2021
Hi Anthony Santi,
when HTTP_REQUEST {
if { [HTTP::host] ends_with ".domain1.com" } {
HTTP::redirect https://[string map {"domain1" "domain2"} [HTTP::host]][HTTP::uri]
return
}
}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
