Forum Discussion
DaveC_53879
Jul 29, 2011Nimbostratus
Inserting 301 returns blank page
The rule below returns a 301 but it also returns a blank page, so somehow my redirect to "http://synergycitizens.org[HTTP::uri]" isn't working. The host names below are not real, but the rule below...
hooleylist
Aug 08, 2011Cirrostratus
Hi Dave,
Can you add an asterisk to the www. entry and a log entry before retesting?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"www.*" -
"synergycitizens.net" -
"synergycitizens.com" -
"synergycitizens.mobi" -
"synergycitizens.net" -
"citizensforsynergy.org" -
"citizensforsynergy.net" -
"citizensforsynergy.com" -
"synergyscitizen.org" -
"synergyscitizen.com" -
"synergycitizen.net" -
"synergycitizen.com" -
"synergy-citizen.org" -
"synergy-citizen.net" -
"synergy-citizen.com" -
"synergy-citizens.org" -
"synergy-citizens.net" -
"synergy-citizens.com" -
"synergycitizen.org" {
HTTP::respond 301 "http://synergycitizens.org[HTTP::uri]"
log local0. "[IP::client_addr]:[TCP::client_port]: Redirecting to http://synergycitizens.org[HTTP::uri]"
}
default {
log local0. "[IP::client_addr]:[TCP::client_port]: Doing nothing for [HTTP::host][HTTP::uri]"
}
}
}
Can you clarify what happens in the debug logging when you get a 'cannot display the page' error in IE?
Aaron
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