cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
336
Views
0
Helpful
2
Replies

Using CSS11503 to insert "www" to "*.domain.com"

bill.hogg
Level 1
Level 1

I think I saw a document on CCO to describe how to do this but i cant find it.

When a user enters "http://domain.com" into the their web browser i want them to redirected to "http://www.domain.com"

In my prod environment I am operating multiple URL's.  They all use a single content rule. 

So in actual fact I believe that my content rule needs to use wildcards.

Eg:

user enters "http://domain.com" into their web browser they then get sent to "http://www.domain.com"

user enters "http://domain1.com" into their web browser they then get sent to "http://www.domain1.com"

user enters "http://domain2.com" into their web browser they then get sent to "http://www.domain2.com"

i want to use wildcards for the above so that I only have a single content rule and the config remains short

Eg:

http://*.* redirects to http://www.*

where * is any character.

I then have a backend web server which uses host headers to determine what site / content to display in the browser.

Thanks!

2 Replies 2

jsirstin
Level 1
Level 1

Bill,

Here is a link that gives a sample for what you are trying to do. Unfortunately you will not be able to do this in one content rule. The CSS will not be able to pick a service to use for the redirect based on the client request.

http://www.cisco.com/en/US/products/hw/contnetw/ps792/products_tech_note09186a00801c65b5.shtml#ex1

You will need to create a unique content rule for each domain and add the correct redirect service to each.

The config would look something like this using the sample in the link above.

service AC
ip address 2.2.2.2
keepalive type none
type redirect
domain www.domain.com
active

service AB
ip address 2.2.2.3
keepalive type none
type redirect
domain www.domain1.com
active

owner ARC
content AC
  port 80
  protocol TCP
  vip address 10.198.5.1
  add service AC
  URL "//domain.com/*"
  active

content AB

  port 80

  protocol tcp

  vip address 10.198.5.1

  add service AB

  URL "//domain1.com/*"

  active

When you hit the vip you will get the redirect based on the host header you come in with.

Hope that helps

Jim

thanks         

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: