Matching

redirect.pizza's matching options allow the ability to set-up complex redirect set-ups.

We'll first look in the database to lookup a redirect that matches the full URL. For example, a request for example.com/path?query-string=1 comes in. We'll search for that and if it exists we can be sure that the destination is the one defined on that redirect! If not, we'll continue down the line.

  1. Exact match (case sensitive) (example.com/PaTh?query-string=1)
  2. Exact match (case insensitive) (example.com/path?query-string=1)
  3. Path without query string (example.com/path)
  4. Without path (example.com)

If non of these conditions match, we cannot be sure where to redirect to and present a 404 page. We recommend always setting up a "root path" redirect so your users are always redirected somewhere. See Match not found

URI Forwarding = no preference on root match

If a request comes in without a path defined ("homepage"), we'll prefer the source first that has URI Forwarding disabled. This enables the following:

  • Redirect 1: example.com/ -> new.com - URI Forwarding = yes
  • Redirect 2: example.com/ -> new.com/new-homepage - URI Forwarding = no

If a request comes in for example.com ("homepage"), we'll redirect that request to new.com/new-homepage. Every other request will go to new.com/$PATH$ as defined on the incoming source.

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
Matching

Domain redirects delivered hassle-free

Features

Making it
too easy?

Automatic HTTPS

We automatically obtain an SSL certificate for your domain(s). Redirection with HTTP & HTTPS out-of-the-box.

Analytics

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

API

Connect your software to automatically create redirects via our API. Automate away!

Path forwarding

Keep the original path and keep it in the destination for a smooth domain change migration and keeping your SEO game intact.

Query Parameter Forwarding

Forward query parameters found on the source URL to the destination.

Email Forwarding

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