Forum Discussion
Pav_70755
Sep 20, 2011Nimbostratus
HTTP Re-Direct uri replace?
I have the following rule written
when HTTP_REQUEST {
if { [HTTP::uri] contains "?storyId=" } {
pool STAGE_directmarketing.thomsonnet.co.uk-80
...
Brian_69413
Sep 20, 2011Nimbostratus
I think you would do the following:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/win" } {
set extracta [substr [HTTP::uri] "/win" ""]
HTTP::redirect "http://www.new.com/New-Advice$extracta"
}
elseif { [HTTP::uri] ends_with "/talk" } {
HTTP::redirect "http://www.news.comk/Marketing-Services/"
}
elseif { [HTTP::uri] ends_with "/find" } {
HTTP::redirect "http://www.news.comk/Business-Data/"
}
else {
pool STAGE_www.news.com-80
}
}
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