Forum Discussion
El-Guapo_29797
Nimbostratus
Aug 31, 2013*Redirect http to https and remove www from URL*
Following iRule, removes www from URL. But, can we also redirect http to https at same time with same iRule?
if {[string tolower [HTTP::host]] starts_with "www."} {
HTTP::redirect "http://[str...
El-Guapo_29797
Nimbostratus
Sep 03, 2013Kevin: Thank you so much.. This worked great. when HTTP_REQUEST { if { [string tolower [HTTP::host]] starts_with "www." } { HTTP::redirect "https://[findstr [string tolower [HTTP::host]] "www." 4][HTTP::uri]" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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