Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

URL Rewrite or Redirection question

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

 

 

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Hi Yves,It is a https request

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.

 

4 REPLIES
Cisco Employee

Hi Yves,It is a https request

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.

 

New Member

Hi Kanwalsi, Thank you very

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

New Member

Hi Kanwalsi,have you tested

Hi Kanwalsi,

have you tested this ? is it working ?

New Member

Hi,Unfortunately, I was not

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

 

 

 

213
Views
0
Helpful
4
Replies
CreatePlease to create content