Forum Discussion
m00t
Apr 14, 2020Altostratus
iRule for domain host replacement
Hey all, I've been racking my brain trying to get a domain host replacement for a wildcard domain. Trying to do anything: *.domain1.com to redirect to *.domain2.com with the URI. C...
Beaker
Apr 16, 2020Cirrus
I have use this iRule in the past to get accomplish something similar
when HTTP_REQUEST {
HTTP::host [string map {".old-domain.com" ".new-domain.com"} [HTTP::host]]
HTTP::respond 307 Location https://[HTTP::host][HTTP::uri]
}
It should do a wild card replacement like you want, or at least similar functionality
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