Redirecting from non-www to www domain (Canonical Redirect)

Creating a wildcard canonical redirect which redirects any request that doesn't have the www to the www (useful for Search Engine Optimisation) can be easily achieved in your cPanel. *** The first step is to log into your cPanel account. If you are unsure on how to do this, please view the following help article - '[How to log into cPanel](https://hostpresto.com/help/article/1)'. ![alt text](https://i.imgur.com/QRmld56.png "Canonical redirect 1") * * * Under the '**Domains**' title, click onto '**Redirects**'. ![alt text](https://i.imgur.com/NV6qsk0.png "Canonical redirect 2") * * * Select and enter the respective information for the redirect. * **Type** - Choose 'Permanent(301)' . * **http://(www.)?** - Select the domain from the drop down menu. * **/** - Enter just the old page URL that follows your domain name. For example if you want a redirect from http://www.your-domain.com/old-page, enter just 'old-page'. * **Redirects to** - Enter the full domain where you want the redirect to go to - _the exact domain will need to include http:// or https://_. * **Redirection type** - Select your redirection preference. * **Wild Card Redirect** - Tick this option. ![alt text](https://i.imgur.com/AOMGtmH.png "Canonical redirect 3") * * * Once you have entered the redirect information, select '**Add**' to complete. ![alt text](https://i.imgur.com/1pHqSez.png "Canonical redirect 4") > This process will perform a wildcard 301 from non www to www. Search Engines will automatically pick this up next time it crawls your site and update automatically, so no need to submit your site again. * * *
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to log into cPanel

There are two different methods to log into your cPanel control panel in order to manage every...

What's the difference between Aliases, Addon and Subdomains?

### Aliases An Alias domain does not have a unique website. It is a domain that is masked to...

Creating a MySql Database

If your website uses PHP or you need to hold a collection of records which need to be accessed...

Importing a MySql Database

You can import a MySQL database via phpMyAdmin which is available in the cPanel control panel....

Exporting a MySql Database

You can export a MySQL database via phpMyAdmin, available in cPanel, if you want to keep a backup...