cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
419
Views
0
Helpful
3
Replies

css/apache redirection

haiwu.us
Level 1
Level 1

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

3 Replies 3

andreas.larsen
Level 1
Level 1

You can do that in a CSS if you want to with dql groups.

Read more about it here.

http://www.cisco.com/en/US/products/hw/contnetw/ps792/products_configuration_guide_chapter09186a0080771913.html#wp1037856

Please rate if you find it usefull.

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

Gilles Dufour
Cisco Employee
Cisco Employee

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: