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 accurately reflects my existing rule. What am I missing here? Thanks.
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]" }
}
}
- Peter_72728NimbostratusLooks to me like your 301 response is missing a very important header...
- DaveC_53879NimbostratusAny idea why or how to fix it?
- DaveC_53879NimbostratusAaron and Peter, I found the problem. I inserted the word "Location" after the 301. That works. Thanks for all your help. I really apreciate it. I wouldn't have gotten this far without it.
- Peter_72728NimbostratusSorry, Dave. I didn't notice the omission of "Location" until you pointed it out. Now it's so obvious! Glad to hear you've got it working.
- hooleylistCirrostratusBah, sorry for missing that! Good catch guys.
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