Adding rewrite URL rules - PingAccess - 7.0

PingAccess

bundle
pingaccess-70
ft:publication_title
PingAccess
Product_Version_ce
PingAccess 7.0
category
Product
pa-70
pingaccess
ContentType_ce

Add a rewrite URL rule, which examines the URL of every request and determines if a pattern matches, in PingAccess.

When you define a regular expression in a rule (such as regex), and if a pattern matches, PingAccess uses the information configured in the rewrite URL rule and rewrites that portion of the URL into a path that the site can understand.

  1. Click Access and then go to Rules > Rules.
  2. Click + Add Rule.
  3. In the Name field, enter a unique name for the rule.

    The name can be up to 64 characters long. Special characters and spaces are allowed.

  4. From the Type list, select Rewrite URL.
  5. In the Map From field, enter the regex of the URL path and the query you want to match.

    ^/bank/(.*) - This example illustrates matching the Request-Line in the request. The Request-Line begins with /bank/ (the ^ indicates "begins with") and places the rest of the URL into the first capture group

    For more information on regex patterns, see the Oracle Java Docs.

  6. In the Map To field, enter the URL path and the query you want to generate.

    /application/$1 - This example defines the replacement string, which generates / followed by the content of the first capture group.

    To better understand the use of special characters, such as \ and $, in the replacement string, see the Oracle Java Docs.

  7. Click Save.