Forum Discussion
Redirecting https traffic to an https subdomain?
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 ...
All of our incoming traffic right now goes to:
https://www.domain.com/customername/portal or https://www.domain.com/customername/admin
What I'd like to do is for specific values of redirect them to:
https://subdomain.domain.com/customername/portal or admin.
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).
Any help would be appreciated!
- nitass
Employee
[root@ve1023:Active] config curl -Ik https://www.domain.com/coffeebean/admin
- rprague_79440
Nimbostratus
First, thank you for the reply, I think I've got this down, but there are a couple of questions I have. - rprague_79440
Nimbostratus
I'm currently running the following version:edit: Looks like the class command was implemented in 10.x, so this may not work for me as written, no?
- hoolio
Cirrostratus
Hi rprague, - rprague_79440
Nimbostratus
Thank you Aaron, I'll start looking at that right now. - rprague_79440
Nimbostratus
After reading up on it, I think this is right:class name_dr { "drtest dr" } when HTTP_REQUEST { set cust [getfield [HTTP::uri] "/" 2] set drRedir [findclass $cust $::name_dr " "] if {$drRedir != ""}{ HTTP::redirect "https://dr.domain.com/[HTTP::uri]" } }
- hoolio
Cirrostratus
Hi Ron, - rprague_79440
Nimbostratus
Couldn't sleep, decided to test it, worked great other than I had to remove the trailing / in the domain.com redirect.
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