Forum Discussion
Sonny_J_Bonds_1
Nimbostratus
Jun 09, 2015http to https redirect working but want to add www.
Hi,
This iRule is working to redirect http to https and leaving the hostname intact. Exactly what I want.
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::u...
Antony2015
Altostratus
Jun 10, 2015Hi Sonny,
Please try with the irule below.
when HTTP_REQUEST { if { [HTTP::host] starts_with "abc.com" } { HTTP::redirect https://www.abc.com[HTTP::uri] } }
Thanks.
Anto
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