# Configuring the Preservation of the Original URL During Redirection of Subscriber Sessions

You can configure the HTTP local server to preserve the URL, originally requested by a user, as a variable in the redirect URL.

- From Profile Configuration mode, enable preservation of the original URL on the HTTP local server.

  - To configure preservation of the original URL on the IPv4 profile:

    host1(config-profile)#ip http redirectUrl “http://ispite.redirect.com/accessDenied.do?url=%(url)” preserveOriginalUrl

  - To configure preservation of the original URL on the IPv6 profile:

    host1(config-profile)#ipv6 http redirectUrl “http://ispite.redirect.com/accessDenied.do?url=%(url)” preserveOriginalUrl

| Note: You must press Ctrl+v before typing “?” in the CLI. You must also ensure that the redirect URL is of the HTTP query type according to the server language supported by the redirect server.

#### Related Documentation

- Preservation of the Original URL During Redirection of Subscriber Sessions
- ip http redirectUrl
- ipv6 http redirectUrl