Configuration

How to use destination variables

Destination URLs can sometimes be variable. You might want to include part of the source URL in your destination for it to work correctly.

redirect.pizza supports the following variables to use in your redirect. These will be automatically replaced:

All examples below are based on the following incoming URL: https://www.redirect-me-plz.co.uk/contact

{domain.fqdn} - example: www.redirect-me-plz.co.uk
{domain.label} - example: www.redirect-me-plz
{domain.root}
- example: redirect-me-plz
{domain.extension} - example: co.uk
{path} - example: contact

Example 1
Source: https://my-old-site.com/
Destination: https://fancy-new-site.com/?rel={domain.label}
Will be redirect to: https://fancy-new-site.com/?rel=my-old-site

Example 2
Source: https://my-old-site.com/subpage
Destination: https://fancy-new-site.com/old/{path}
Will be redirect to: https://fancy-new-site.com/old/subpage