Forum Discussion
Pav_70755
Oct 20, 2010Nimbostratus
HTTP Re-Direct with html holding page
I have a standard HTTP re-direct in place and want to know how I can incorporate a HTML holding page before it re-directs.
Pav_70755
Aug 16, 2011Nimbostratus
Hi Chris,
I tried to modify this rule to use a more complex holding page but was wondering if it was possible to use an existing asp page as the holding page rather than having to add the code to the i-rule?
here is what i have but im getting parsing errors.
Thanks
Pav
Un-comment the following lines if the site uses SSL
when CLIENT_ACCEPTED {
TCP::collect 5
}
when CLIENT_DATA {
if { [matchclass [TCP::payload] starts_with $::http_methods] } {
SSL::disable
}
}
when HTTP_REQUEST {
if { [TCP::local_port] eq "80" } {
persist source_addr 1800
HTTP::fallback http://support.com/
set dtime 3
Un-comment the next 3 lines for redirects and expand out with elseif's if needed
if { [HTTP::uri] ends_with "/default.asp?File=pressdetail&id=87" } {
HTTP::respond 200 content \
"JAN
We've Moved!
Temp holding page Temp
You will automatically be redirected in 5 seconds.
Alternatively, you can visit Temp now
© Temp & , Inc.
"
} else {
pool Web_Farm_Front
Un-comment the net line if using redirects
}
} elseif { [TCP::local_port] eq "443" } {
HTTP::header insert "BPL-SSL" "On"
pool Web_Farm_Front
} else {
set srvr [findclass [TCP::local_port] $::Individual_Servers " "]
if { $srvr ne "" } {
node $srvr 80
} else {
Replace HTTP://sitename with the default URL of the site
HTTP::redirect "http://www.domain.net/"
}
}
}
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