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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

ACE re-direct/re-write URL to a subpage of the VIP


I'd like to re-direct/re-write the URL that a user is sent to when they go to a particular http VIP.

A present the process is handled by an Apache server that we are looking to remove from the backend and utilise the available functionality of the ACE.

When a user goes to "" I would actually like them to go to "" and NOT which is what is currently happening (the real backend URL wanted being

I created the following action list:-

action-list type modify http

header rewrite request Host header-value "" replace ""

which at first glance I though had done the trick but unfortunately /irj/portal is being inserted into all requests to URLs that start "" and not JUST "", i.e.

"" is automatically changed into "" which doesn't exist.

Is what I'm after possible?

thanks in advance


Cisco Employee

Re: ACE re-direct/re-write URL to a subpage of the VIP


some theory first.

A url like is composed of a hostname : and a uri: /path/file

When this url is sent by a computer it is clear split in those 2 parts:

GET /path/file....


So, when you do a header rewrite to modify the host, all you do is change the line Host: ....

Clearly this won't work.

You have to

1/ create a class-map to match the url "/" and/or "/index.html"

2/ create a redirect serverfarm/rserver to point to the new url.

3/ create a policy-map type http loadbalance to link the url class-map with the redirect and to the link the class-default to your serverfarm

Hope this helps.