Forum Discussion
Paul_Zajicek_73
Nimbostratus
Jan 10, 2007Redirect 404 pages and not images
Hi,
Can anybody explain why the following redirects both 404's from missing pages AND missing images, (redirecting when its only a missing image can cause us problems).
when HTTP_RESPONSE {
if { [HTTP::status] ends_with "404" } {
if { [HTTP::header "Content-Type"] starts_with "text/" } {
HTTP::redirect "http://www.homepage.com/"
}
}
}
Thanks.
- bl0ndie_127134Historic F5 AccountIf your http://www.homepage.com/ contains any broken links, you are effectively sending your browser in an infinite loop. A smart browser might work around this but then again it may not.
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