Forum Discussion
tsm_329805
Nimbostratus
Aug 08, 2017Irule redirection from old URL (abc.com) to new URL (xyz.com)
All,
Looking for irule to redirect when user hits abc.com that should redirect to xyz.com.
Note: xyz.com is just a CNAME for abc.com.
looking forward for your help.
Thanks,
TS
Jad_Tabbara__J1
Cirrostratus
Aug 08, 2017Hello tsm,
you can also use it to https 😉 add the "string tolower" so you can also redirect hostname with capital letter (example ABC.com).
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "abc.com" } {
HTTP::respond 302 noserver Location "https://xyz.com" Connection Close
alternative : HTTP::redirect "https://xyz.com"
}
}
Regards
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