Forum Discussion

Drew_24540's avatar
Drew_24540
Icon for Nimbostratus rankNimbostratus
Aug 04, 2009

uri redirect help please

I am trying to use the following Irule to redirect to a URI...but it is not working. any thoughts?

 

 

when HTTP_REQUEST {

 

if {[HTTP::uri] equals {http://start/}} {HTTP::uri {http://start.beazer.com/citrix/xenapp/auth/login.aspx}

 

}

 

}

3 Replies

  • Take a quick look at the descriptions for HTTP::host (Click here) and HTTP::uri (Click here) and then give this a try:

     
     when HTTP_REQUEST { 
      
         Check requested host 
        if {[string tolower [HTTP::host]]" eq "start"}{ 
      
            Check requested URI 
           if {[HTTP::uri] eq "/"}{ 
      
               Redirect client to new location 
              HTTP::redirect "http://start.beazer.com/citrix/xenapp/auth/login.aspx" 
           } 
        } 
     } 
     

    Aaron
  • AWESOME! That did exactly what I needed Hoolio! Thanks for your assist!

     

     

    Edit---is it possible to wildcard after the start...say if someone typed in "http://start.beazer.com or http://start.beazer.net?