I am trying to figure out how to write an iRule that will take https://aciphexoffer.com and redirect it every time to https://www.aciphexoffer.com , so that when someone puts in the URL with out the www, they do not get a SSL cert error. We messed up and our developers did not have a ticket put in to get a cert for the domain without www and we do not control the DNS. So we need a fast fix on this.
I do have this:
when HTTP_REQUEST {
HTTP::redirect http://www.[getfield [HTTP::host] “:” 1][HTTP::uri]
}
But this always adds the www. to anything that is requested, even if they already have put in www in the URL.
Can anyone take a look and help me out on this.
Thanks in advance for any pointers or cures.
razorack---