How to set up a redirect (301 or 302)

How to set up a redirect (301 or 302)

With a redirect you automatically forward visitors from one address to another – for example from an old page to a new one, or from your website to another domain.

Step 1: Open the redirects

In the Control Panel, open your website, click Advanced in the top menu and choose Redirects. Then click Add redirect.

Advanced menu with Redirects and the Add redirect button

Step 2: Define the redirect

  1. Status: choose 301 for a permanent redirect or 302 for a temporary one.
  2. Domain: choose for which domain the redirect applies – or keep All domains.
  3. Slug: enter the path after the domain that should be redirected, e.g. alte-seite for meinetestseite.ch/alte-seite. Leave it at / to redirect the whole domain.
  4. Destination URL: choose https:// or http:// and enter the target address, e.g. meinetestseite.ch/neue-seite.
  5. Click Add.
Redirect form with status, domain, slug and destination URL
Info

301 or 302? Use 301 if a page has moved permanently – search engines then transfer the ranking to the new address. Use 302 only if the redirect is temporary, e.g. during maintenance.

Step 3: Check the redirect

The new redirect appears in the list. Open the old address in your browser to test whether you are forwarded correctly.

Redirects list with the new 301 redirect

Warning

Important: Make sure the destination does not redirect back to the original address. Otherwise a redirect loop occurs and the page can no longer be opened.

Idea

Tip: Browsers remember 301 redirects. If you change a redirect and still land on the old destination, test it in a private browser window.