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
...
Pav_70755
Sep 20, 2011Nimbostratus
Hi Brian,
I forgot to remove the first line but i think the rule needs to be modified to have some paramaters set that replace something from an existing url or use a parameter thats set to insert into the re-directed url
when HTTP_REQUEST {
set extracta [URI::query [HTTP::query] "New-Advice" ]
if { [HTTP::uri] ends_with "/win" } {
HTTP::redirect "http://www.new.com/$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
}
}
Would something like that work for the first line?
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