Forum Discussion

Albert__Tase_70's avatar
Albert__Tase_70
Icon for Nimbostratus rankNimbostratus
Jun 26, 2007

Coverting from 4.x to 9,x

I need to convert the following part of an 4.x irule to 9.x

 

 

else if (http_host contains "www.palgrave-journals.com" or http_host contains "palgrave-journals.com") {

 

if (http_uri == "/" or http_uri == "/index.html") {

 

redirect to "http://www.palgrave-journals.com/pal"

 

}

 

else if (http_host contains "www.palgrave-journals.com" or http_host contains "palgrave-journals.com") {

 

use pool palgrave-foxtrot

 

}

 

else if (http_uri == "/mysiteaccount") {

 

redirect to "http://www.palgrave-journals.com/nams/svc/mysiteaccount"

 

}

 

else if (http_uri starts_with "/cgi-bin" or http_uri starts_with "/services/link.taf" or http_uri == "/login/login.taf") {

 

use pool nature

 

 

 

to 9.x

 

 

Please help

 

 

 

thanks

 

 

al Tase
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Deja vu? Can you check the last post on this where I reformatted your rule and cleaned up some minor logic and syntax errors?

     

     

    http://devcentral.f5.com/default.aspx?tabid=53&forumid=5&postid=11907&view=topic

     

    Click here

     

     

    Aaron