301 Permanent HTTPS redirect
Hello,
I just updated an iRule for my HTTPS object as shown below, it now forwards https://cardiosmart.org to https://www.cardiosmart.org. What I need now is to modify further to incorporate a 301 permanent redirect into this same rule. I'm not sure where to include the "respond 301 location" though, would someone be able to assist?
Also, I do already have a "respond 301 location" included in an iRule for my HTTP object.
Thanks in advance!
Diane
Current iRule: when HTTP_REQUEST { if { [string tolower [HTTP::host]] contains "healthandwellness.cardiosmart.org" } { HTTP::redirect "https://www.cardiosmart.org[HTTP::uri]" } if { [string tolower [HTTP::host]] equals "cardiosmart.org" } { HTTP::redirect "https://www.cardiosmart.org[HTTP::uri]" } }