Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

css/apache redirection

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
New Member

Re: css/apache redirection

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.

New Member

Re: css/apache redirection

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

Cisco Employee

Re: css/apache redirection

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.

132
Views
0
Helpful
3
Replies
CreatePlease login to create content