For example, a site is hosted on under /content/. Users access the site through the following URLURLURL (Uniform Resource Locator) Identifies a resource according to its Internet location. in their browser:

For demonstration purposes, assume this results in a 302 Redirect to an importantContent.html page as well as setting a domain cookie for If you protect this site with PingAccess using the virtual host under the application /importantstuff/, you must rewrite the content. The information below discusses an example scenario.

This conceptual overview assumes that a virtual host, a site, and an application are already configured.

Create a Rewrite Content Rule

A rewrite content rule alters content in the HTTP response body.
  • In the Response Content-Types field, you define a response type of text/html.
  • In the Find and Replace criteria, you specify <a href=""> and <a href="">.
  • Add the rule to the application. A query to a page with links in it that points to now points to

Create a Rewrite Cookie Domain Rule

A rewrite cookie domain rule allows the rewriting of the Domain field on cookies when they are set by the backend site.

  • In the server-facing cookie domain, you enter
  • In the public-facing cookie domain, you enter
  • Add the rule to the application.

    Cookies associated with the domain, or, are rewritten to pertain to, or

Create a Rewrite Cookie Path Rule

A rewrite cookie path rule converts the cookie path returned by the site into a public-facing path.

  • In the Server-Facing Cookie Path field, you enter /content/.
  • In the Public-Facing Cookie Path field, you enter /importantstuff/.
  • Add the rule to the application.

    Cookies associated with a cookie path of /content/ are rewritten to pertain to /importantstuff/. After configuring the rewrite rules as discussed above, a user could access the and PingAccess would route that request to

    If the site sends a redirect to, PingAccess would return a redirect to If the site then returned a cookie with a domain of and a path of /content/, PingAccess would rewrite that cookie to be relevant to and /importantstuff/.

Create a Rewrite Response Header Rule

A rewrite response header rule alters the response header used in the 302 Redirect.

  • In the Server-Facing URI field, you enter
  • In the Public Path field, you enter /importantstuff/.
  • Add the rule to the application. A query resulting in a response containing a 302 Redirect to is rewritten to

    This also works for relative redirects: /content/ is rewritten to /importantstuff/. It also works for the path beneath the one defined in the URI: /content/news/index.html is rewritten to importantstuff/news/index.htm.

Create a Rewrite URL Rule

A rewrite URL rule alters the request URIURIURI (Uniform Resource Identifier) Identifies a web resource with a string of characters conforming to a specified format..

  • In the Map From field, you enter ^/importantstuff/(.*) as the regex of the URL's path and query you want to match.
  • In the Map To field, you enter /content/$1.
  • Add the rule to the application. A query to results in PingAccess routing that query to