Skip to content
uPress Knowledge base

Setting up a URL redirect

Enter a source path and destination URL, choose 301 or 302, and test the redirect after saving.

2 min read Updated

On this page
  1. Choosing the redirect type
  2. Opening redirects
  3. Adding a redirect
  4. Testing after saving
  5. Removing a redirect

The screenshots show the Hebrew interface. The instructions below use the English interface labels.

A redirect sends visitors from an old address to a new one. In the panel, you specify a source path on the site, a full destination URL, and a redirect type.

Choosing the redirect type

TypeWhen to use it
301 — PermanentThe page has permanently moved to a new address.
302 — TemporaryThe move is temporary and the original address is expected to be used again.

Check that the destination page exists and loads. Identical source and destination URLs, or two redirects pointing back to each other, can create a loop. This example uses 302 to demonstrate a temporary redirect.

Opening redirects

1. Select the site in My sites.

2. Open Settings and click Redirects.

The Settings tab with the Redirects card
The card also shows how many redirects are configured.

Adding a redirect

3. In the new-redirect section, enter a source path such as /kb-old.

4. Enter a full destination URL beginning with http:// or https://. This example uses https://shop.example/kb-new.

5. Choose Type: 301 for permanent or 302 for temporary. If there is a domain field, check that it matches the source address.

6. Review the details and add the redirect.

A new redirect form with a source path, destination URL, and type 302
The addresses are examples. Enter a path for the source and a full URL for the destination.

Testing after saving

7. Check that the table shows the intended source, destination, and type.

8. Open the source URL in a browser and check that you reach the correct destination. Also test in a private window to reduce the effect of a redirect cached by the browser.

9. Check for a 404 page, a loop, or an unintended move to another domain.

The redirects table after saving the demonstration 302 redirect
The table confirms the redirect was saved in the panel. On a real site, you still need to test the source URL in a browser.

If it does not work, check other redirects in WordPress plugins, Cloudflare, and HTTPS or www settings. A path redirect does not replace connecting the domain through DNS.

Removing a redirect

Find the exact row and remove that redirect, then retest the source URL. Do not delete all redirects just to remove one row. Before replacing a redirect, record its existing settings.

Further reading: 301 redirects in MDN and 302 redirects in MDN.

Was this article helpful?