Forum Discussion
JGTRAN_142005
Jan 23, 2014Nimbostratus
need help creating an iRule
hi all,
Hope you all doing well. Could someone help me with creating an iRule? I would like to create an iRule which will forward all http/https request to go to a URL.
For example:
abc.com
www.abc...
JGTRAN_142005
Jan 23, 2014Nimbostratus
when HTTP_REQUEST {
Check if the host starts with www.
if {[string tolower [HTTP::host]] starts_with "www."}{
Redirect with the www. prefix removed to the same URI
HTTP::redirect "https://[string range [HTTP::host] 4 end][HTTP::uri]"
} }
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects