cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1026
Views
0
Helpful
4
Replies

URL Rewrite or Redirection question

yves.haemmerli
Level 1
Level 1

Hello,

What I want to do is actually simple, however I have problem finding the solution on Cisco ACE :

  • The client sends GET requests on   https://xxx.yyy.com/aaa/TheRestOfTheUri.html
  • The ACE should rewrite or redirect the user to https://xxx.yyy.com/bbb/TheRestOfTheUri.html

 

Is it possible to rewrite just one part of the URL (aaa to bbb) or, redirect the user by changing only this part of the URI ?

How should I configure this function ?

 

Thank you for any support

 

Yves

 

 

1 Accepted Solution

Accepted Solutions

Kanwaljeet Singh
Cisco Employee
Cisco Employee

Hi Yves,

It is a https request so to do the redirection, ACE should first be able to look into the HTTP header and that is possible by doing ssl termination and then loadbalancing the request to redirect serverfarm. If you want the ACE to rewrite the user request and send it to the server, that can be done as well.

The URL/URI rewrite feature was introduced in A5 train. Please check which version are you running? You can rewrite the HOST part but not the path of URL in earlier versions. Please see the release notes below:

http://www.cisco.com/c/en/us/td/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA5_2...

The HTTP URL rewrite feature enables the ACE to rewrite URI/URL pathnames in HTTP requests. You can rewrite the URL value in an HTTP request from a client using the url rewrite command in action-list modify configuration mode.

url rewrite url_regex replace new_url_regex

Let me know if you have any questions.

Regards,

Kanwal

Note: Please mark answers if they are helpful.

 

View solution in original post

4 Replies 4

Kanwaljeet Singh
Cisco Employee
Cisco Employee

Hi Yves,

It is a https request so to do the redirection, ACE should first be able to look into the HTTP header and that is possible by doing ssl termination and then loadbalancing the request to redirect serverfarm. If you want the ACE to rewrite the user request and send it to the server, that can be done as well.

The URL/URI rewrite feature was introduced in A5 train. Please check which version are you running? You can rewrite the HOST part but not the path of URL in earlier versions. Please see the release notes below:

http://www.cisco.com/c/en/us/td/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA5_2...

The HTTP URL rewrite feature enables the ACE to rewrite URI/URL pathnames in HTTP requests. You can rewrite the URL value in an HTTP request from a client using the url rewrite command in action-list modify configuration mode.

url rewrite url_regex replace new_url_regex

Let me know if you have any questions.

Regards,

Kanwal

Note: Please mark answers if they are helpful.

 

Hi Kanwalsi,

 

Thank you very much for your fast and helpful answer. Yes, it is exactly what I want to do. I will be able to test it only next monday unfortunately and will let you know on the result

 

Thanks again !

 

Yves

Hi Kanwalsi,

have you tested this ? is it working ?

Hi,

Unfortunately, I was not able to test this solution, because the requirements changed and finally, no URL rewrite was necessary anymore... However, what Kanwal proposed was exactly what I was asking for

 

 

 

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: