Configuring Redirects & Rewrites with the Performance & Delivery Rule Builder
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.
- In the rule builder screen, select the Rewrite/Redirect Rule radio button:
- Select criteria you want match requests against.
- 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 code: Permanent (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.