Forum Discussion
Can anyone help me with single apology page using data groups?
Make your data group look like this, maybe? Then you could write a quick API call to add or subtract hosts from the apology page and not have to worry about listing sites you don't want to take any action on/for.
"www.example.com := www.apology.page/example"
when HTTP_REQUEST {
set host [class match -value [string tolower [HTTP::host]] equals dg_apology_single]
if { $host ne "" } {
HTTP::redirect "https://$host"
unset $host
}
}
This looks good, but would require alot of tweaking to be able to have 40 different apology URLS.
Every site has a unique apology URL.
Im no expert with using datagroups, but is it possible to have a third colon with the unique aplogoy URL?
So if the DG looks like this:
site1.com | no | www.apology.com/23423
site2.com | no | www.apology.com/43623
site3.com | yes | www.apology.com/54233
site4.com | no | www.apology.com/68423
site5.com | yes | www.apology.com/64732
The irule would redirect site3.com to www.apology.com/54233
and redirect site5.com to www.apology.com/64732 ?I am open for suggestions, or other ways to solve the problem.
Recent Discussions
Related Content
* 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