Forum Discussion
Parveez_70209
Nimbostratus
Mar 16, 2015Logic to be divided between 301 and 302 redirection
Hi Team,
Currently as per the below logic we are having an Irule named: "irule_blocks" containing the below:
when HTTP_REQUEST priority 500 {
if {[class match [HTTP::uri] contains dg_gl...
nathe
Cirrocumulus
Mar 16, 2015Pz,
Dont you just need to move the start_with if statement up to the redirect section?
when HTTP_REQUEST priority 500 {
if {[class match [HTTP::uri] contains dg_glob_block_contains] || [class match [HTTP::uri] starts_with dg_glob_blocks_starts_with] } {
HTTP::redirect "http://www.xyz.com"
}
elseif {[class match [HTTP::uri] starts_with dg_l_mgd_url_blocks] } {
HTTP::respond 302 Location "http://www.xyz.com"
}
}
N
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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