css/apache redirection

Unanswered Question


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 ...



I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Gilles Dufour Mon, 02/26/2007 - 10:19

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.



This Discussion