Forum Discussion
remove www from domain
- Feb 06, 2025
You can achieve your requirement using iRule as well as LTM policy.
One of the sample iRule is given here ( Ref article ).In the reference example, it is redirecting from one domain to other with URI translations also.
You can draft iRule according to your use case and use it. You can club both host and URI redirections in the same irule or keep it separated based on how do you want to manage it.Also, make sure your application is also accepting requests using redirected host. I have seen few cases where, app team hardcode their application to accept for specific host requests only.
IMP - You need to make sure that certificate configured on the F5 should be valid for "abc.com" domain also. If it is only valid for "www.abc.com" and you redirected traffic to "abc.com" with same certificate. Client will start getting certificate error warnings.So you need to take this point into consideration before redirecting requests.
Hope it helps!
Thank you. It worked
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