Forum Discussion
Feb 05, 2010
One Vs for Redirects
This should be an easy one..
I want to use one VS for a bunch of redirects, a catch all of sorts.. If for some reason this is a bad idea just let me know.
The redirect on...
Mar 02, 2010
Okay I think I see what's going on here.. I was only using "my" and "www" as an example for the A records... I don't actually want to always use or replace "my" or "www", the two A records (or a record and subdomain, however you want to think of them as) should be able to be anything before the domain...
Basically the iRule needs to be able to mach the first url, whether it be www.www.www.domain.com or you.me.her.domain.edu or .domain.com etc etc and redirect to a specific url, whether it be .domain.com or www.domain.com or gmail.google.com, or a.b.c.domain.com anything...
Anyways, here is my output with the new log, i've used different domain names to try and make it a little less confusing...
So my output of the class;
class my_hosts_class {
"health.google.com"
"www.health.google.com"
}
Here is the output from the log...
Mar 2 09:13:07 tmm tmm[1144]: Rule VSred : 69.37.2.138:51581: GET to www.health.google.com/
Mar 2 09:13:07 tmm tmm[1144]: Rule VSred : Matched. Redirecting to: http://my.health.google.com/
See what happened here, instead of redirecting to health.google.com it redirected to my.health.google.com... at first I thought the string map -nocase was there to make sure the rule caught if someone put a cap WWW/MY... but I see it's there to actually prepend www or my to the url... remember I don't want to focus on any one name... I just want to match any url and redirect to another, don't focus on what I'm actually using for a records...
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