Forum Discussion
Gbps_31870
Sep 27, 2012Nimbostratus
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" }
}
}
}