Skip to content

URL patterns

This page will show you steps to configure request patterns. These then can be used at multiple places such as rewrite/caching/blocking rules.

Typical use-case is, you would want to proxy a set of URLs to a certain endpoint, and then set caching specific to it.
e.g. You can proxy image requests to your static domain, and set 90 days caching for them. (This way also helps avoiding extra OPTIONS calls made by browser for the request being for other domain)

Note: For demo purpose, we will be using www.nviztest.com domain as an example.
Here, we will be defining a URL pattern for relative requests of global-uploads.webflow.com domain - to proxy them to that domain itself.

Prerequisite

  1. You must have a domain configured on Nitrogen

Steps

  1. Click on Settings menu. You will be seeing URL Patterns tab.
    Step

  2. Select relevant domain from Domain dropdown, and click on Create button at top right corner.

  3. You will be taken to a screen to provide URL pattern details.
    Provide the required details:

    1. Group Name: Provide short detail about the URL pattern.
      For now, put relative /global-uploads.webflow.com/ requests here. Note: Please keep the name meaningful and relevant.

    2. Pattern: It specifies the regex pattern for the request URL.
      We will be putting .*/global-uploads.webflow.com/.* here

    3. Enable Full Regex Support: As we are using a regex, enable this flag. It can be kept disabled if you are matching absolute URLs.

    4. Ignore Case: Enable this flag if you want the match URL pattern without matching the case.
      Step

  4. Click on Save button. The configured pattern will be showed in URL Patterns list.
    Step

You can now use this URL pattern at many places such as rewrite/caching/blocking rules.

Notes