Forum Discussion
iRule redirection issue
Hi All,
I have a redirection rule applied on F5 -LTM -9.2.3 version . This is to redirect "www.webserver.com" to "https://webserver.com" some how there is an intermittent issue. Not sure if this version of F5 support this kind of iRule.
when HTTP_REQUEST { if {[HTTP::host] eq "www.myserver.com"} { HTTP::redirect "https://myserver.com[HTTP::uri]" } } Much appreciate the input
3 Replies
Hi
Try making it case insensitive:
when HTTP_REQUEST { set host [string tolower [HTTP::host]] if { $host eq "www.myserver.com"} { HTTP::redirect "https://myserver.com[HTTP::uri]" } }/Patrik
- Deepak__M_K_165
Nimbostratus
Hi Patrick,
Thanks.Will be testing it by next week. Will let you know the result.
- What was the actual issue? I assumed it did not run, but maybe it's something else?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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