cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
523
Views
0
Helpful
1
Replies

CSS Redirect preserving URI

drummerrj
Level 1
Level 1

Hi all,

I have a application where I have to redirect a specific URL to another. The point is that the primary URL, have some information that I want to preserv after redirection, for example:

Primary URL: http://abc.com/foo/foo2

Redirected URL: http://xyz.com (The URI portion /foo/foo2 is that I want to preserv)

The default CSS11501 behavior is to redirect the primary URL to http://xyz.com. Just that.

I'm doind that at content configuration level as follows:

content foo

     vip address xxx.xxx.xxx.xxx

     url "//abc.com/*"

     protocol tcp

     port 80

     redirect "//xyz.com/"

     active

My question is: Is there a way to preserv the URI?

Best regards,

Fabiano Martins

1 Reply 1

Daniel Arrondo Ostiz
Cisco Employee
Cisco Employee

Hi Fabiano,

As far as I know, it's not possible to preserver the URI when configuring a redirection.

One thing you could try is configuring the server to which you want to send the requests as a service for this content rule. This way, all requests would be load-balanced to that one. When load-balancing a request, the URI is always preserved.

This method would allow you to send the requests to the new server, but the clients would never see the 302 message. If this is not acceptable, you other option would be setting up a web server to receive the first requests and perform the redirection.

I hope this helps

Daniel

Review Cisco Networking for a $25 gift card