Forum Discussion

GFort_32452's avatar
GFort_32452
Icon for Nimbostratus rankNimbostratus
Oct 09, 2012

Need help writing irules

I am new to wriitng irules and was needing some help. I need to write an irule that will redirect the following

 

https://resetmypasswordqa/itim/self

 

https://resetmypasswordqa

 

http://resetmypasswordqa

 

http://resetmypasswordqa/itim/self

 

 

to URL https://resetmypasswordqa/itim/self/Login/Logon.do

 

 

Any help or ideas is greatly appreciated.

 

 

Thanks

 

Gary

 

 

 

 

 

 

 

  • Perhaps we can simplify things for the port 80 Virtual Server? I assume you don't want to allow any port 80 traffic at all and if so you can just do this;

    
    when HTTP_REQUEST {
     HTTP::redirect " https://resetmypassword.okdhs.int/itim/self/Login/Logon.do"
    }
    

  • "/resetmypassword/itim/self/Login/Logon.do" { small L please.
  • That is exactly what I needed "What Lies Beneath", thank you very much.

     

     

    nitass, tried the small L and redirects did not work. Not sure why IBM used upper case instead of lower case.

     

     

    Thanks for all your great help!

     

     

    Gary
  • Both L's need to be lowercase, good spot nitass; that was probably the problem, just a little too late =]

     

    You're welcome Gfort