Skip to main content

Redirect a domain name in cPanel - Knowledgebase / cPanel Shared Web Hosting - Micron21 Helpdesk

Redirect a domain name in cPanel

Authors list

Overview:

Using the redirects tool in cPanel you can send all of the visitors of a domain or particular page to a different URL


Method:

  1. Log in to your cPanel account.

  2. Go to the "Domains" section and click on "Redirects".


  3. Choose the type of redirect:

    1. Permanent (301): Updates bookmarks and directs search engines to the new site.

    2. Temporary (302): Redirects visitors or search engines without updating bookmarks or changing search engine indexing.

      Note: Use 301 redirects for permanent changes. They inform search engines to update the URL in their database. This is the recommended type. Avoid using 302 redirects unless the change is temporary.

  4. Select the domain name to redirect from the drop-down menu.

  5. To redirect a specific page or directory, use the text field after the drop-down menu and enter the folder or file name.

  6. Enter the full URL of the page your domain will redirect to in the "Redirects to" field.
    Note: Include the protocol (http:// or https://).

  7. Choose how you want your domain to redirect regarding the use of www

    1. Only redirect with www: Works when visitors use www. in the URL

    2. Redirect with or without www: Works regardless of www. in the URL

    3. Do Not Redirect www: Does not work if visitors use www. in the URL

    4. If you want all files in the current directory to redirect to the same file names in the new directory, check the "Wild Card Redirect" option

  8. Click "Add" to create the redirect



Helpful Unhelpful