Forum Discussion
rwagner1
Nimbostratus
Sep 21, 2018Multiple domain redirects to subdomain
I have multiple domains on a single VIP using host headers. I would like an irule to redirect sitea.com to , siteb.com to and so on.
I think it can be done in a data group and iRule, but when I...
kolom
Altostratus
Sep 26, 2018Hi rwagner1, You can use the below iRule.
when HTTP_REQUEST {
if { !([HTTP::host] starts_with "www") } {
HTTP::redirect "https://www.[HTTP::host]"
}
}
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