Back

How to use destination variables

Destination URLs can be dynamic. 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 when the redirect is performed:

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

Pricing Background
How to use destination variables

URL redirects delivered hassle-free

Features

Solutions that
fit your needs

Automatic HTTPS

We automatically set up an SSL certificate for your domains, so redirection with HTTP & HTTPS works out-of-the-box.

Analytics

Gain insights with detailed analytics about your redirects. See which domains are getting the most hits or where your visitors are coming from.

Email Forwarding

Setup your domains to automatically forward email. All your needs to migrating your domain in one platform.

Team Support

Doing things all by yourself isn't much fun. Invite your colleagues to manage the redirects and work as a team.

API

Connect your software to automatically create redirects via our API. Automate that shi*t.

Import & Export

Import and export redirects at any point in the process; whatever works for you.