Forum Discussion
Joel_43353
Nimbostratus
Mar 20, 2013How to direct traffic to different folders based on incoming subdomain?
Hi,
I am stumped on writing an iRule to take in the URL coming on a shared VIP (DNS entry set for different sub domains to go to the same VIP) and direct to the proper folder in the IIS p...
t-roy
Nimbostratus
Mar 20, 2013You sure you want to redirect HTTPS to HTTP? This should work:
when HTTP_REQUEST {
switch [HTTP::host] {
"one.mydomain.com" { HTTP::respond 301 "http://one.mydomain.com/appone" }
"two.mydomain.com" { HTTP::respond 301 "http://two.mydomain.com/apptwo" }
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects