Forum Discussion

Abhishek9129_14's avatar
Abhishek9129_14
Icon for Nimbostratus rankNimbostratus
May 21, 2014

Https URL masking and redirection

Here is the task at hand.

 

User is hitting >>>> https://abc.com <<<< VIP X.X.X.X

 

Now in browser, above URL must REDIRECT to BACKGROUND Url; and he should see the FOREGROUND URL only.

 

In background >>>> https://XYZ.com/Maintenance/html/UnderMaintenance.html <<<< VIP Y.Y.Y.Y

 

In foreground >>>>> https:/abc.com/Maintenance/html/UnderMaintenance.html

 

Kindly help making a simple Irule for this.

 

Cheers!!! Abhishek

 

3 Replies

  • You'll find a multitude of examples of how this can be done if you do a search here on DC for 'URL mask' or 'URL masking'
  • @ W L B Yes im searching already, but its a combination of REDIRECTION AND MASKING both together, involving two VIPs, so not sure exactly what to follow....but im trying..
  • If you want to mask the URL change to the user, then you shouldn't issue any kind of HTTP redirect. That will change what the user sees in their browser. WLB is correct, just use a URL masking type iRule. Kevin just posted an example here:

     

    https://devcentral.f5.com/questions/how-do-i-create-an-irule-that-rewrites-a-request-to-be-translated-to-an-ipaddress-and-portanswer95772