Forum Discussion
DanO_100877
Nimbostratus
Mar 25, 2008Does execution halt after http::respond?
I'm trying to set up a series of rules for an upcoming transition of our site to a WCM with wildly different URLs from our old site. What I want to know is if the code stops executing after an http::...
The_Bhattman
Nimbostratus
Mar 26, 2008If I understand you correct you want redirect if all http requests hit a know page_ID. If the page is part of your list you want redirect to an errorpage.
Here is a snippet that may help
foreach item $::redirect_ids {
if { $item == $page_id } {HTTP::redirect "http://$::base_hostname/site/en/us/$item" }
else {HTTP::redirect "http://$::base_hostname/site/us/en/home/Global/We-Have-Redesigned-the-Site.html?cid=ErrorPage$page_id" }
}You don't need "then", because it's now implicit within irules, using IF statements. I also used redirect because that is essentially what you are doing with the "HTTP::Respond 301"
Hope this helps
/CB
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
