02-24-2007 08:28 PM
Hi,
We have a website, say its name is http://website.name.com, now we want it so that when users type http://www.website.name.com, they would automatically be redirected to http://website.name.com.
It can definitely be done using apache virtualhost and redirect, where we create CNAME for www.website.name.com, then in Apache virtualhost configuration, set it so that request for this CNAME would be redirected.
I think in order to use CSS, we might have to ask a different VIP for www.website.name.com, rather than using the VIP for website.name.com, then in the content rules for this new VIP, configure the redirection, which means it uses one extra VIP.
Am I right on this? It seems it's better to just use Apache to do redirection in this case, maybe I am wrong ...
Thanks,
Hai
02-26-2007 12:33 AM
You can do that in a CSS if you want to with dql groups.
Read more about it here.
Please rate if you find it usefull.
02-26-2007 09:08 AM
Thanks for the reply. But in our case, I would want to redirect anything under http://www.website.name.com to http://website.name.com. For example:
Redirect URL http://www.website.name.com/a/b/c/d/test.html to http://website.name.com/a/b/c/d/test.html. For the above URL, I guess when user type http://www.website.name.com, the URL bar would still display http://www.website.name.com, it won't be changed to http://website.name.com, am I right on this?
Thanks,
Hai
02-26-2007 10:19 AM
you can use the same vip ip:port.
But one content rule will have
url "//www.website.name.com/*"
And on the other rule you will have
url "//website.name.com/*"
The first rule will be a redirect.
The 2nd one a loadbalancing rule.
Gilles.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide