I am trying to rewrite just the domain name itself, while leaving the URI intact. This iRule works, however I am wondering if this is the most efficient way to do this?
I’d like to catch both www.olddomain.com and olddomain .com, and rewrite to newdomain.com while keeping the URI present. This should serve as a wildcard catch-all to cover with and without the www.
Interesting…I will see how this one works - Thank you very much for your help. Is using an httpclass going to be more efficient than the if statement above? I’ll let you know how it works
EDIT: Works great! However I have another iRule that matches a custom URI and redirects only if client traffic goes to: