Forum Discussion
superd_88943
Dec 10, 2015Nimbostratus
iRule re-direct & Exclusions
Hi all,
Im hoping some guidance on creation of an iRule to redirect some traffic, as follows:
If URL request contains http://www.domain1.com/ redirect requests to http://domain2.domain.com/...
Stanislas_Piro2
Dec 10, 2015Cumulonimbus
Hi super,
- irules work with host, uri, path, query, parameters... not URL...
- your 2 exceptions are one as this is the same path... only the query string is different and I'm not sure you want to check every parameter values.
this is an irule that can help you to begin:
when HTTP_REQUEST {
if { [HTTP::host] equals "domain1.com"} {
switch -glob [string tolower [HTTP::path]] {
"/researcharchive.asp" {return}
default {HTTP::redirect http://domain2.domain.com/economic-research-unit}
}
}
}
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