http redirect

To configure the alternate server for the URL specified, use the command http redirect in Global Configuration Mode. The no form of the command removes the redirection entry added to the server specified for the URL.

http redirect

http redirect { <URL to be redirected> } { server } { {<Domain name> } { | <IPv4 Address> } { | <IPv6 Address>} } { }

no http redirect

no http redirect { <URL to be redirected> }

Parameters

Parameter Type Description
<URL to be redirected> /url Enter to specify the URL which has to be redirected. On receiving request for the URL, a redirection status is sent as response for the request.
server   Enter to set the server for the URL which is redirected. The options are:
<Domain name>   Enter to set the domain name of the alternate server.
<IPv4 Address>   Enter to set the IP address of the alternate server in v4 format.
<IPv6 Address>   Enter to specify the IP address of the alternate server in v6 format.

Mode

Global Configuration Mode

Default

Examples

iS5Comm(config)# http redirect /sample/ server 12.0.0.2