bwilliam
Feb 22, 2019Cirrus
After modifying Irule added website has too many redirects
I have an existing universal redirect irule where we have several redirects configured and working. When I add the 2 websites where it includes password to the irule and then try to access the site I get a redirect loop. To access the site I created a host entry on my mac pointing to the universal_redirect vip IP. After doing this I get an error too many redirects occurring trying to open passwordreset.somecompany.com. What am I doing wrong? Any help will be greatly appreciated.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
“*website1.com*" {
HTTP::redirect "https://www.newsite.io"
}
“passwordreset.acompanyhasnoname.com" {
HTTP::redirect "https://somecompany.sharepoint.com/O365-Resources/Pages/SSPR%20-%20Unlock%20and%20Reset%20your%20Account.aspx"
}
“*passwordregistration.acompanyhasnoname.com*" {
HTTP::redirect "https://somecompany.sharepoint.com/O365-Resources/Pages/SSPR%20-%20Unlock%20and%20Reset%20your%20Account.aspx"
}
"*myred.somecompany.com*" {
HTTP::redirect "https://somecompany.website.com"
}
"*www.some-company.com*" {
HTTP::redirect "http://www.newcompany.com"
}
default {
add the default action you prefer ie "www.def.com"
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
}