Forum Discussion

Brantly_Perry_1's avatar
Brantly_Perry_1
Icon for Nimbostratus rankNimbostratus
Nov 12, 2008

Need HTTP Redirect assistance

Hey everyone. Need assistance figuring out the best way to accomplish a redirect.

 

 

http://host.com/uri

 

 

needs to redirect to

 

 

http://host.com/member?cid=uri

 

 

So uri can be anything.

 

 

Also, would it be best to integrate this into the existing iRule shown below? How's the best way to do that?

 

 

when HTTP_REQUEST {

 

switch [HTTP::path] {

 

/ { HTTP::path "/member" }

 

/bp { HTTP::path "/member?cid=bp" }

 

/tooljournals { HTTP::path "/tooljournals" }

 

/eb-member-earAdmin { HTTP::respond 404 content "RESOURCE NOT FOUND" }

 

/admin { HTTP::respond 404 content "RESOURCE NOT FOUND" }

 

/adminTool { HTTP::respond 404 content "RESOURCE NOT FOUND" }

 

}

 

}

 

 

Thanks so much for any input!

11 Replies