Forum Discussion
3 Replies
Sort By
- Lee_SutcliffeNacreous
Try this iRule
when HTTP_REQUEST { if {[HTTP::host] contains ".xyz-dev"} { switch -glob [HTTP::host] { "*.net" { HTTP::redirect https://[string map {"net" "com"} [HTTP::host]][HTTP::uri] } default {HTTP::redirect https://[HTTP::host][HTTP::uri]} } } }
- Reginald_Sible1Nimbostratus
Lee Thank you so much! it works!
- Lee_SutcliffeNacreous
No worries, happy to help.
Please upvote/accept answer to help other users in the future who may have a similar problem.