Forum Discussion

jspec21_47500's avatar
jspec21_47500
Icon for Nimbostratus rankNimbostratus
Feb 24, 2012

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!
  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Not 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.

     

     

    Is there a reason for not using an irule?

     

     

    H