All,
I have an append/redirect question.
Right now I am doing a straight redirect based on two different paths, but now my users want to add arguments to the paths how can I do this? Below is the current rule and an example of the url the users are trying to use.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/dev" } {
log local0. "Found the uri /"
HTTP::redirect "https://www.server1.com:4444/dev"
}
if { [HTTP::uri] equals "/test" } {
log local0. "Found the uri /"
HTTP::redirect "https://www.server1.com:4444/test"
}
}
so basically the redirection takes you to the apache server running on 4444 instead of 443, but the question is if a user hit https://www.server1.com/test/USERNAME -or- https://www.server1.com/dev/PROJECT the redirect takes them to the mainpage (since that is what the rule tells it to do), but how can I grab the PROJECT code or the USERNAME and pass that to the redirect or append it to the redirect?
Thanks,
Matt