Forum Discussion
jspec21_47500
Feb 24, 2012Nimbostratus
HTTP Class Profile - redirect a specific URL
Is there a way with HTTP class profiles to only redirect SPECIFIC URLs from port 80 to 443 and leave other URLs (that share the same virtual server) alone?
i.e.
virtual server 1.1.1.1 port 80 has 2 URLs pointing to it:
http://hello.com
http://goodbye.com
I only want http://hello.com to be redirected to https://hello.com, http://goodbye.com should not be changed.
Is there something in the "Host List" or something?
Thanks!
- HamishCirrocumulusNot sure about using an http profile for it. But an irule to do this is pretty simple. Just a check of the [HTTP::host] and [HTTP::uri] (Assuming you only want / to be redirected) and then doing an HTTP::redirect and return.
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