Forum Discussion
dw_888_212625
Nimbostratus
Nov 26, 2015irule for redirect traffic from http to https appending "www." to all sub websites
Please advise on irule for redirect traffic from http to https appending "www." to all sub websites. example http traffic from somewebsite.com\more\mo to https://www.somewebsite.com\more\mo
1 Reply
- JRahm
Admin
Try this:
when HTTP_REQUEST { if { [llength [split [HTTP::host] "."]] < 3 } { HTTP::redirect https://www.[HTTP::host][HTTP::uri] } }More details and some example tclsh code in this similar thread.
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