1. Home
  2. Web Hosting
  3. cPanel
  4. How to setup a redirect

How to setup a redirect

Contents

The Steps

1. Log into cPanel.
2. Navigate to the Redirects under Domains.

3. Choose the type of redirect you’d like to set up.

  • Permanent (301): this redirect will update a visitor’s previous bookmark.
  • Temporary (302): it will redirect the visitor or search engine, but not make permanent changes to your sitemap/visitors bookmark.

NOTE: 301 redirects are permanent. They mean that the page has moved and they request search engines  to update the URL in their database.


4. From the drop-down menu, find the domain name you would like to redirect:


If you want to redirect a single page or directory, use the text field to enter the file/folder.

5. Enter the full URL of the page your domain will be redirected to in the Redirects to field (e.g. https://geckohost.nz)

NOTE: You DO need to enter the URL’s protocol (e.g., http://, https://) 

6. Select if you want your domain to redirect with www. or not:

  • Only redirect with www.: The redirect will work if visitors type www. at the beginning of the URL.
  • Redirect with or without www.: The redirect will work regardless of using www.
  • Do Not Redirect www.: The redirect will not work if visitors are using www. as a part of the URL.

7. Check Wild Card Redirect if you would like all files in the current directory to be redirected to the same file names in the new directory.

Example: If example.com redirects to example-test.com, then:

  • example.com/test/ will redirect to example-test.com/test/

8. Click on the Add button in order to create the redirect.

Updated on February 28, 2024

Was this article helpful?

Related Articles

Still not having luck?
Can't find the answer you're looking for? Don't worry, let's get a support ticket opened!
OPEN A SUPPORT TICKET