Forum Discussion

Rajesh_74831's avatar
Rajesh_74831
Icon for Nimbostratus rankNimbostratus
Nov 16, 2010

Need assistance to write a redirect rule based on the request coming from

Hi DevCetral Team,

 

 

 

 

We had a strange situation where we need to perform redirect to a different url, leme explain why it is strange.

 

 

 

 

 

User connects to www.xxx.com should redirect to www.yyy.com ( This can be done using a simple irule which I am aware of)

 

 

 

User clicks login in www.yyy.com which again redirects to www.xxx.com

 

 

 

Sounds simple but as we had already setup redirect from www.xxx.com to www.yyy.com from the above condition it will again get back to www.yyy.com forming a multiple redirects which it should not happen.

 

 

 

So, we need an irule which can suggest if the request is coming from www.yyy.com , www.xxx.com should not redirect.

 

 

 

Can you please suggest this condition not to redirect if the request is coming from www.yyy.com

 

 

 

We are using BIG-IP 10.1.0 Build 3341.0 Final .

 

 

 

Appreciate your quick response.

 

 

 

-Rajesh

 

SuccessFactors Inc.

 

1 Reply

  • is this applicable?

     

     

    irule security 101 - 06 - http referer

     

    http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/113/iRule-Security-101--06--HTTP-Referer.aspx