Quick disclaimer, while I know what iRules do, I haven’t bothered implementing any, because we haven’t really needed to, but laws make things complicated, so we’re looking for a way to reroute traffic from a main URL to specific subdomains (based on country)
I work for a health and wellness company that does HRA (health risk analysis) for a variety of corporations and governments around the world. Recent law changes in two of the countries we do business in require that all health information remain on servers in their respective countries. Our sales director is concerned about fracturing our customers among many different URLs because of potential customer confusion, so …
Right now we have around 1400 distinct customer URLs, and of these 240 need to be redirected to their proper datacenters. I’ve seen a lot written on redirecting http to https and the like, but nothing about redirecting an https request. Are there problems doing this because of the nature of https sessions? Is something like this possible at all?
A lot of our customers currently use the standard URL and it would be difficult from a sales and customer satisfaction perspective to ask them to change the URL they go to (there’s a lot of printed material with the main URL on it for various customers who resell our services).
I can’t actually test it, because I can’t figure out how to create the “name_dg” class you showed in your reply. If you have any pointers on doing that, I’d appreciate it. I’ll keep digging through the knowledge base in the meantime.
That looks good. You could change != to ne as you’re doing a string comparison. You should also remove the / before [HTTP::uri] in the redirect as the URI should already start with a forward slash.