Forum Discussion
iRule switch confusion (Version 9.4.4)
Hi Aaron,
Try this ,,,
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/storefront/"} {
return
} else {
switch {[HTTP::uri]} {
"" -
"/" -
"/storefront" { HTTP::respond 301 Location "https://[HTTP::host]/storefront/home.ep" }
"/us.website-sitemap.xml" -
"/uk.website-sitemap.xml" -
"/ca.website-sitemap.xml" -
"/ie.website-sitemap.xml" -
"/au.website-sitemap.xml" -
"/row.website-sitemap.xml" -
"/robots.txt" { return }
default { HTTP::respond 301 Location "https://[HTTP::host]/storefront/error.ep?errorCode=404" }
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
