Forum Discussion
insert12_38638
Nimbostratus
Aug 22, 2013redirection from http to https
Help required to setup a redirection.
Requirment: client accesss the website http://www.abc.co.uk we want to redirect them to https://www.abc.co.uk
Solution: I find an easiest and effiecent wa...
Kevin_Stewart
Employee
Aug 22, 2013You should write it exactly as it is in the reference document.
Note: The [getfield [HTTP::host] ":" 1] function above extracts the hostname from the host header and, if a non-standard port is specified, removes the port from the host header.
https://[getfield [HTTP::host] ":" 1][HTTP::uri]
By the way, there's already a built-in HTTP-to-HTTPS redirect iRule on the BIG-IP called "sys_https_redirect".
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
