Forum Discussion
Mansi_Chopra_57
Nimbostratus
Nov 21, 2006HTTP redirect to HTTPS
Hi,
Is it possible to redirect an HTTP request to HTTPS.
If the customer types the url as http://www..com then the web url should be automatically redirected as https://www..com
...
Nov 21, 2006
A simple HTTP::redirect should do the job
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
Just make sure you don't have this rule applied to your HTTPS virtual or you will get yourself into an infinite loop.
BTW, in the future you might want to post iRules questions to the iRules forum. iControl is our remote management API.
-Joe
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