×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Cisco Content Switch HTTP rewrite rules

Document

Wed, 11/18/2009 - 18:25
Sep 29th, 2009
User Badges:

Hi,


I wonder if someone could help me with http rewrite/redirects on Cisco content switch 11501. I want to achieve following for say company xyz:


1. Someone typing in the browser xyz.com should be redirected to http://www.xyz.com

2. Anyone typing in www.xyz.com/login* (where * is wildcard) should be redirected to https://www.xyz.com/login


My knowledge of CCS is limited so would greatly appreciate any help.

Loading.
rschulti Wed, 09/30/2009 - 06:01
User Badges:

Been a while since I configured this...


You need to create a L5 content rule with a statement like this:

     url "//xyz.com/"

     add service XYZ


Next you need a service with a redirect string:

service XYZ

     redirect-string "www.xyz.com"

     keepalive type none


Sort of the same goes for question number 2 except you use a wildcard within the URL like:

url = "www.xyz.com/login*"

Actions

This Document