Forum Discussion
ervinc_27883
Nimbostratus
Sep 24, 2014multiple urls to single url
I want to redirect users to a single url (http://a.b.com/a/error.htm) if they came from (http://a.b.com/a/a.aspx?a=1 or http://a.b.com/a/h.aspx?a=f or http://a.b.com/b/4.aspx?a=3)
any help will ...
shaggy
Nimbostratus
Sep 24, 2014HTTP::uri will match the entire uri (path + query). Try:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/a/a.aspx?a=1" or [string tolower [HTTP::uri]] equals "/a/h.aspx?a=f" or [string tolower [HTTP::uri]] equals "/b/4.aspx?a=3" }{
HTTP::redirect http://a.b.com/a/error.htm
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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