Forum Discussion
Brantly_Perry_1
Nimbostratus
Nov 12, 2008Need 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 ...
Brantly_Perry_1
Nimbostratus
Nov 12, 2008Thanks a lot for the input! I believe you have gotten me very close, however; it's not quite right. The uri rewrite is not changing, however when I replace HTTP::uri with bp it works fine. Here's what I have:
when HTTP_REQUEST {
switch [HTTP::path] {
/ { HTTP::path "/member" }
/tooljournals { HTTP::path "/tooljournals" }
/HTTP::uri { HTTP::uri "/member?cid=[HTTP::uri]" }
/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" }
}
}
Appreciate your help.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
