Forum Discussion
Redirect 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: lending.money.com >>
It is two questions how to accomplish it with iRule ? how to accomplish it with inbuilt local policy on F5-LTM ?
2 Replies
- Frank_Nsubuga_3
Nimbostratus
Wait, I misread what you asked for.
That only re-directs locally, removed to avoid confusion.
- youssef1
Cumulonimbus
Hi,
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
Recent Discussions
Related Content
* 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