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

CSS 11503 redirect regular expression as parameter

jan.sneyers
Level 1
Level 1

Hi,

we are using LoadBalancers 11503 to let users go to internal webservices (via a portal). For this reason we have several services and contentrules defined.

Now we want to implement a rule that allows a user to be redirected to a specific webserverpage depending on what his initial url is.

Example: http://www.oursite.com/register-applic1

should be redirected to something like http://www.oursite.com/blahblah/register?applix=applic1

This is very easy if we are talking of 1 or 2 applications to register for, but we already have 37 applications, which we all want to make accessible via the same principle: take part <applic1> from initial url and post it in the redirect-url as paramter. With this, <applic1> can be re-used by a whole bunch of values.

I know in Unix this can be done with "positional" params in Regular Expressions (RE):

http.*register-(.*) will result in a $1 having the value that stands between the brackets, which would redirect to http://www.oursite.com/blahblah/register?applix=$1

Is something like this possible in CSS 11500, and if so, how?

Thanks in advance.

Jan Sneyers

2 Replies 2

fmeetz
Level 4
Level 4

check out the following link on Configuring Redirects on the CSS 11000 , hope this helps :

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

Hi, sorry for the late answer, but I had some vacation.

I went through this document, and I already knew a part of it (redirection in Contentrules).

I tried to solve this topic by the second option (service with domain-redirect), but the problem is that I need to pass a domain larger than 64 bytes (71 to be precise): I need to take it through a portal (first http.... and then add the real internal server, second http...), with a result as http://www.oursite.com/http://internalserver.oursite.com/path_to_applic

So, not a very good solution.

I'm really looking for something that can be done on the CSS itself, but seems impossible to find.

Any help still very much appreciated.

Jan Sneyers.

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:

Review Cisco Networking products for a $25 gift card