The list of dynamic variables in the Edge Rule redirect URL

Some of the Edge Rule actions allow you to use dynamic variables to perform advanced redirection, header manipulation and similar logic at the edge. The following variables are supported within the platform:


The {{path}} variable is replaced with the full request path including the query strings. The typical use case is in redirection or change origin rules.

Example value:



The {{hostname}} variable provides the full hostname that the request was sent towards.

Example value:


The {{country_code}} variable contains the country code of the requester's IP address.

Example value:



The {{query_string}} variable is replaced with the full query string of a request, excluding a leading question mark.

Example value:



The {{request_method}} variable is replaced with the request method that the request used.

Example value:



The {{file_name}} variable contains the file name from the request URL. In other words, it contains the last part after the final slash and excludes query strings.

Example value:


  Advanced Variables

Additional advanced variables are described and documented in our Documentation section.

Table of Contents

Was this article helpful?
12 out of 37 found this helpful