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
{domain.subdomain}
- example: www
{path} - example: contact
{country} - example: US
{method}
- example: POST
{scheme}
- example: https

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

Example 3
Source: https://wildcard.my-old-site.com/
Destination: https://{domain.subdomain}.fancy-new-site.com
Will be redirect to: https://wildcard.fancy-new-site.com

More articles

Can’t find the answer you’re looking for?

E-mail us
support@redirect.pizza
Start a chat
Online 9:00 - 21:00 CEST
Phone
Available with Enterprise
Pricing Background
How to use destination variables

Domain redirects delivered hassle-free

Features

Making it
too easy?

Automatic HTTPS

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

Analytics

Who is still visiting that old domain? Gain insight with detailed statistics and find out where hits are coming from.

Email Forwarding

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

Team Support

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

API

Connect your software to automatically create redirects via our API. Automate the heck out of it.

Import & Export

Manage your redirects without losing precious time. Import and export redirects in our UX-friendly interface