Forum Discussion
Can someone tell me teh meaning for the Irule and how to write similar ones?
I have one more query. Right now for a virtual , I have 2 irules, On efor inserting remote client ip and another is the above one. Now i got a request to do a redirection from port 80 to 443 and strip www from the http://www.xyz.com/ url. So if I have 4 Irules on a virtual , will it take too much processing time?
Secondly to strip www from a http request can i use below irule:
when HTTP_REQUEST { if {[string tolower [HTTP::host]] starts_with "www."}{ HTTP::respond 301 "https://[string range [HTTP::host] 4 end][HTTP::uri]" } Else {HTTP::respond 301 "https://[HTTP::host][HTTP::uri]"} }
Is there any constraint for using 301 in http version 1.1?
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