Forum Discussion
Irule for www removal on https
- Aug 29, 2019
Hi,
Can you try this iRule in browser's incognito mode?
when HTTP_REQUEST { if {[string tolower [HTTP::host]] starts_with "www."}{ log local0. "hostname = [HTTP::host]" HTTP::redirect "https://[substr [HTTP::host] 4][HTTP::uri]" } }
Hi eaa,
This is strange that when I apply that iRule I don't see a log entry inside of /val/log/ltm for what I'm expecting hostname = www.abc.company.com. The only thing that I see is that the SSL Handshake failed which mean that for some reason it is skipping this irule. Any ideas as to why? The only thing that is different on this VS is that there is a pool assosiated with this and the other VS doesn't.
Thanks
Sounds like the ssl handshake fails because the CN name on the certificate doesn't match once you trim it?
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