URL Path Regex
HTTP Large
HTTP Small
ADN
Purpose: Compares a request's relative path to the specified regular expression.
Note: This match condition requires HTTP Rules Engine - Advanced Rules. This component of HTTP Rules Engine must be purchased separately. Contact your CDN account manager to activate it.
An option is provided to indicate whether this condition will be met when the exact URL path "Matches" or "Does Not Match" the regular expression.
Learn more about the core differences between the various URL path match options.
Key information:
- The Relative to option determines whether the URL comparison will start before or after the content access point. A content access point is the portion of the path that appears between the CDN hostname and the relative path to the requested asset. It identifies a location by server type (i.e., CDN or customer origin) and your user account (e.g., /800001/CustomerOrigin). The available values for this option are explained below.
- Root: This value indicates that the URL comparison will start directly after the CDN hostname (e.g., http://wpc.0001.{Base Domain}). This is the default value for this option.
- Origin: This value is only supported when this match option has been nested under a "CDN Origin" or "Customer Origin" match. This type of configuration indicates that the URL comparison will start after the content access point (e.g., /000001) specified in the parent "CDN Origin" or "Customer Origin" match.
- An edge CNAME URL will be rewritten to a CDN URL prior to URL comparison. In the following example, both URLs point to the same asset and therefore have the same URL path.
CDN URL: http://wpc.0001.{Base Domain}/800001/CustomerOrigin/path/asset.htm- URL path (Root): /800001/CustomerOrigin/path/asset.htm
- URL path (Origin): /path/asset.htm
Edge CNAME URL: http://my.domain.com/path/asset.htm- URL path (Root): /800001/CustomerOrigin/path/asset.htm
- URL path (Origin): /path/asset.htm
- Only exact URL matches to the specified regular expression will satisfy this condition.
- For the purpose of satisfying this condition, query strings in the URL are ignored.
- The case-sensitivity of URL comparisons is determined by the Ignore Case option.
- Spaces in the URL path should be replaced with "%20."
Tip: If you would like to see the applicable content access points for your account, please select either the "CDN Origin" or the "Customer Origin" match options.