Forum Discussion

Bryan_Chick_152's avatar
Bryan_Chick_152
Icon for Nimbostratus rankNimbostratus
Aug 16, 2006

iRule to redirect based on uri content

Hi all,

 

 

I need a rule that redirects for a certain word within the uri--but only when that uri immediately follows the url.

 

 

In this example, "golf" is the word that should initiate the redirect, but only when it immediately follows "vw.com."

 

 

1.) http://vw.com/golf => Should redirect based on rule. This is the only circumstance in which the rule should redirect

 

 

2.) http://vw.com/car/golf => Should NOT redirect based on rule

 

 

3.) http://vw.com/car/sale/golf => Should NOT redirect based on rule

 

 

In the past, we've used the "contains" keyword within the rule, but that won't work here.

 

 

Thanks!

 

Bryan

1 Reply

  • DOH!

     

     

    Thanks, Aaron. I submitted the question to the appropriate forum.

     

     

    I do not see an option to delete this thread. Is there? Can an admin do it on my behalf?

     

     

    Thanks,

     

    Bryan