Destinations can be dynamic. Use variables in the destination URL to carry parts of the incoming request over, so visitors land exactly where they should. Variables are replaced at the moment of the redirect, and you can combine several in one destination.
All examples below are based on this incoming request:
https://www.redirect-me-plz.co.uk/contact?ref=newsletter
Domain
{domain.fqdn}:www.redirect-me-plz.co.uk{domain.fqdnwithoutwww}:redirect-me-plz.co.uk{domain.label}:www.redirect-me-plz{domain.root}:redirect-me-plz{domain.extension}:co.uk{domain.subdomain}:www{domain.subdomains.0}:www. Each subdomain level is available separately, up to{domain.subdomains.9}.
Path and query string
{path}:contact{path:auto_trailing_slash}:contact/. Adds a trailing slash when the incoming path has one.{segments.0}:contact. Each path segment is available separately, up to{segments.9}.{query.ref}:newsletter. Replacerefwith the name of the query parameter you need.
Request
{scheme}:https{method}:GET{ip}:198.51.100.1{userAgent}:Mozilla/5.0 (iPad; U; CPU..){referrer}:example.com/path{referrerHost}:example.com
Language
Based on the Accept-Language header of the visitor's browser, for example nl-NL,nl;q=0.9,en;q=0.8:
{acceptLanguage.raw}:nl-NL,nl;q=0.9,en;q=0.8{acceptLanguage.primary}:nl-NL{acceptLanguage.language}:nl{acceptLanguage.region}:NL{acceptLanguage.q}:1
Location
Based on the IP address of the visitor:
{country}:US{continent}:NA{subdivision.code}:CA{subdivision.name}:California{city}:Mountain View{latitude}:37.4192{longitude}:-122.0574
Broken destination monitoring
When broken destination monitoring is enabled, these variables are available as well:
{monitoring.enabled}:true{monitoring.status}:up{monitoring.lastCheckStatusCode}:200
Examples
Example 1: pass the old domain along
Source: https://my-old-site.com/
Destination: https://fancy-new-site.com/?rel={domain.label}
Result: https://fancy-new-site.com/?rel=my-old-siteExample 2: move a path into a subfolder
Source: https://my-old-site.com/subpage
Destination: https://fancy-new-site.com/old/{path}
Result: https://fancy-new-site.com/old/subpageExample 3: keep the subdomain
Source: https://wildcard.my-old-site.com/
Destination: https://{domain.subdomain}.fancy-new-site.com
Result: https://wildcard.fancy-new-site.comExample 3 combines well with wildcard subdomains. Want to choose between destinations based on these values instead of inserting them? See dynamic destinations.