Forum Discussion

lieweffect_3313's avatar
lieweffect_3313
Icon for Nimbostratus rankNimbostratus
Aug 23, 2017

Mulitiple name redirect to URL

Hi,

 

I have URL as , when typing at the browser, it will auto redirect to folder and the URL at the browser will show https://www.abc.com/xyz/Login.aspx?ReturnUrl=%2fxyz

 

Question: How do I write iRule, whenever user type (in either one of these conditions):

 

  1. http://www.abc.com
  2. http://www.abc.com/xyz
  3. https://www.abc.com
  4. https://www.abc.com/xyz

it will go able to reach and it automatically resolve https://www.abc.com/xyz/Login.aspx?ReturnUrl=%2fxyz

 

Apparently, I have 2 VIPs(http and https), how should I write the iRule for both?

 

Thanks

 

2 Replies