Forum Discussion

PeterC_70986's avatar
PeterC_70986
Icon for Nimbostratus rankNimbostratus
Aug 23, 2012

Help with friendly name to FQDN redirect

I am trying to write an irule that will redirect:

 

 

to https://hostA.domain.com

 

 

It seems simple, but every irule I have tried just causes a loop.

 

 

Any help would greatly be appreciated!

 

 

Thanks

 

 

2 Replies

  • Richard__Harlan's avatar
    Richard__Harlan
    Historic F5 Account
    The iRule should be

     

     

    when HTTP_REQUEST {

     

    HTTP::redirect "https://hostA.domain.com"

     

    }

     

     

    The loop is caused by the webserver sending links that point to HTTP://hostA. You can set the HTTP profile to enable rewrite redirects. You can also update the application to pass links that are HTTPS.
  • Thanks Richard. Turns out I was entering the correct irule the whole time, the web developer gave me the wrong site to redirect to.