Forum Discussion
coke_374683
Nimbostratus
Oct 17, 2018Redirect non-www url to www url
How do I redirect non-www url to www url with/without using irule on F5-LTM?
in the case, the url lending.money.com is hosted on the F5 LTM while the is hosted in the cloud let assume Azure
url: len...
youssef1
Cumulonimbus
Oct 17, 2018Hi,
You can achieve your need using an irule:
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] equals "lending.money.com"}{
HTTP::redirect "https://www.lending.money.com[HTTP::uri]"
}
}
You can do it easly too with LTM policy. Please see the following links:
https://support.f5.com/csp/article/K15085
let me know if you need more helps.
regards
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
