Forum Discussion
Martin_Davies_1
Nimbostratus
Oct 25, 2006Help needed with basic redirect.
Hi, Very new to bigip / iRules.
I am trying to get the following iRule working which was taken directly from this site, to redirect any http traffic to https on the same uri.
when ...
Randy_Wooten_11
Nimbostratus
Oct 25, 2006I use:
when HTTP_REQUEST { HTTP::redirect https://[HTTP::host][HTTP::uri]}
and it works great. You need an HTTP (80) virtual server with this iRule as a resource. You also need an HTTPS (443) virtual server with the same IP address. The HTTPS virtual server doesn't need the iRule.
You can also change the "[HTTP::host][HTTP::uri]" part of the rule to a specific uri and it will work.
Hope this helps.
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
