Configuring Redirects & Rewrites with the Performance & Delivery Rule Builder

Important

The rule builder only works with the V2 config framework. If you see the text "configuration is not supported" on the Performance & Delivery Rules screen, you will need to have Instart migrate your configuration format. Please contact your account executive to initiate this migration. If you have the V1 configuration format, you will continue to have limited self-service control over your caching policy and over performance features JavaScript Streaming, Image Transcoding, and Brotli Compression until your configuration is updated. Refer to Delivery and Performance Configuration Overview for details.

This document describes how to use the Performance & Delivery Rules builder to create rules to create URL redirects and rewrites. For general information about the Performance & Delivery Rules screen, see Configuring Performance & Delivery Rules in the Portal.

Redirects and rewrites only occur for rules that act in the request phase.

  1. In the rule builder screen, select the Rewrite/Redirect Rule radio button:
  2. Select criteria you want match requests against.
  3. Choose the Redirect action, then select Redirect or Rewrite for the Type.
    If it's a redirect:

provide the Redirect to domain or URL.
Select the desired Response codePermanent (301) or Temporary (302).

  If it's a rewrite:

enter what you want the URL rewritten as in the Rewrite to field. 

Here's an example of a rule to perform a simple redirect from acme.com to www.acme.com. The criterion is defined so that if the domain in a request is acme.com, the action will be a permanent redirect it to www.acme.com.