Redirects allow you to forward visitors from one URL to a different URL. They are most commonly used when a live page is taken offline and you want to send the visitor to a live URL to prevent them from seeing a broken link.
Creating a redirect
Navigate to the “Redirects” tab in your settings and click “Add redirect”. You can create a redirect using the pathname for any URL not being used by a live page. You do not need to include your domain, and make sure to begin the pathname with a “/”.
You can forward the path to a page in your site, or to any URL. You can also use variables to dynamically forward multiple URLs with a single redirect rule. Here are some examples:
/blog/:name -> https://medium.com/:name
/shop/:item -> https://shopify.com/:item
/:post -> /new-post/:post
The variable (e.g. :name, :post, etc) can be anything as long as long as it’s the same in the “From” and “To” fields.
Permanent and temporary redirects
Permanent redirects are most common for old URLs, but you may plan to temporarily forward a URL. For example, you may have a URL live for the holidays, but redirect that same URL to another URL for the rest of the year. You can uncheck the box labelled “This is a permanent redirect” to signal to search engines that this redirect is only temporary.