There are upcoming maintenance events which may impact our services. Learn more

Knowledgebase

How to Create URL Redirects Print

  • 0

A URL redirect allows you to send visitors from one web address to another automatically. This is useful when you change the location of a page, move to a new domain, or simply want to make sure your visitors reach the right destination. You can easily set up redirects from your cPanel account using the Redirects tool.

Important Warning

Avoid setting a redirect from domain.com to www.domain.com, or from domain.com to domain.com/index.something. Doing this will cause an infinite loop. If you need to control the www version or the index page, use mod_rewrite by editing your .htaccess file instead.

Creating a Redirect in cPanel

Follow these steps to create a redirect:

  1. Log in to your cPanel.

  2. Under the Domains section, click Redirects.

  3. From the Type drop-down, choose your redirect type:

    • Permanent (301) – Updates visitors’ bookmarks and tells search engines that the page has permanently moved.

    • Temporary (302) – Redirects visitors and search engines temporarily, without updating bookmarks or affecting indexing.

  4. From the http://(www.) drop-down, select the domain you want to redirect.

  5. To redirect a specific page or folder, enter its name in the adjacent field.

  6. In the Redirects to field, type the full destination URL (including http:// or https://).

  7. Choose your www redirection option:

    • Only redirect with www. – Redirects only if visitors use “www.” in the URL.

    • Redirect with or without www. – Redirects all visitors, no matter how they type the address.

    • Do not redirect www. – Leaves “www.” traffic untouched.

  8. If you want visitors to land on the same file or directory at the new destination, check Wild Card Redirect.

    • Example: www.example.com/about.html will redirect to www.example-destination.com/about.html.

    • Without this option, the redirect will send visitors only to the homepage of the new domain.

  9. Click Add to create the redirect.

Final Notes

Once your redirect is set up, visitors who type the source URL will automatically be taken to the target URL you specified. This helps ensure your website remains easy to navigate, even if you move or rename pages.



Was this answer helpful?
Back