Forum Discussion
theizer_91634
Nimbostratus
Sep 22, 2010simple redirection not working as expected - please help
I need requests to http://website.com to be redirected to http://www.website.com (which also needs to be redirected to https)
Here is the irule I created to do this:
when HTTP_REQU...
theizer_91634
Nimbostratus
Sep 22, 2010F5 support hooked me up and fixed my irule. Thanks guys!
when HTTP_REQUEST { if {[HTTP::host] equals "website.com"} { HTTP::redirect "https://www.website.com[HTTP::uri]" } else { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }
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
