forward_​rewrite

Version: v2025-01-13Includes use: No

Behavior name: Forward Rewrite Cloudlet

The Forward Rewrite Cloudlet allows you to conditionally modify the forward path in edge content without affecting the URL that displays in the user's address bar. If Cloudlets are available on your contract, choose Your services > Edge logic Cloudlets to control how this feature works within Control Center, or use the Cloudlets API to configure it programmatically.

Default behavior

These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.

data "akamai_property_rules_builder" "forward_rewrite" {
  rules_v2025_02_18 {
    name     = "Forward Rewrite Cloudlet"
    comments = "Conditionally modify the forward path in edge content without affecting the URL that displays in the user's address bar."
    behavior {
      forward_rewrite {
        enabled          = true
        is_shared_policy = false
        cloudlet_policy  = ""

      }
    }
  }
}
"behaviors": [
  {
  "name": "forwardRewrite",
  "options": {
    "enabled": true,
    "isSharedPolicy": false,
    "cloudletPolicy": ""
    }
  }
]

Options

Option Description
enabled
Enables the Forward Rewrite Cloudlet behavior.
is_shared_policy
Whether you want to use a shared policy for a Cloudlet. Learn more about shared policies and how to create them in Cloudlets Policy Manager.
cloudlet_policy
Identifies the Cloudlet policy. Contains:
  • id. The cloudlet's ID.
  • name. The cloudlet's name.
cloudlet_shared_policy
This identifies the Cloudlet shared policy to use with this behavior. You can list available shared policies with the Cloudlets API.