Forum Discussion
F5Hopper_28651
Sep 20, 2012Nimbostratus
ok thanks I have made my rule and its working now.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] eq "/application.aspx" } {
HTTP::redirect "https://qa.www.google.com/Application.aspx"
}
if { [string tolower [HTTP::uri]] eq "/customerportal.aspx" } {
HTTP::redirect "https://qa.www.google.com/Login.aspx"
}
if { [string tolower [HTTP::uri]] eq "/login.aspx" } {
HTTP::redirect "https://qa.www.google.com/Login.aspx"
}
if { [string tolower [HTTP::uri]] eq "/recovery.aspx" } {
HTTP::redirect "https://qa.www.google.com/Recovery.aspx"
}
if { [string tolower [HTTP::uri]] eq "/signup.aspx" } {
HTTP::redirect "https://qa.www.google.com/Signup.aspx"
}
if { [string tolower [HTTP::uri]] eq "/activateaccount.aspx" } {
HTTP::redirect "https://qa.www.google.com/ActivateAccount.aspx"
}
}
it ended up that in my-
if { [string tolower [HTTP::uri]] eq "/activateaccount.aspx" } {
I had used the real URI of "/ActivateAccount.aspx", this line needed to be lowercase in order to work.
Now is there any way of making the HTTP::redirect more generic? so I can use it for other sites in DEV...so https://dev1.www.google.com?