When creating a new account in WHM you should be able to configure a package to automatically setup 301 redirects.
Canonical urls refers to the following scenario. Which is the best url for a web site?
Code:
http://www.example.com
http://example.com
Both are valid urls. But which is best?
The way WHM/CPanel works currently is a CNAME is setup for the www. and non www. This way I can reference a web site using either:
Code:
http://www.example.com
http://example.com
Unfortunately this is NOT the correct behavior. This behavior when seen by a search engine like Google can be seen as causing duplicate content. It also can be seen as diluting the value of incoming links because they might be split between people who link using
www.example.com or just example.com
The correct behavior would be to allow the user to 301 redirect one of the above domains to the other.
WHM should allow for the creation of packages that automatically setup 301 redirects. It could be as simple as two checkboxes which read:
301 redirect domain.com to
www.domain.com
301 redirect
www.domain.com to domain.com
If I select one of those checkboxes for this package then it will automatically setup the proper redirect any time I assign a new account to this WHM package.
Leaving the boxes unchecked would leave configuration as it is currently. Checking one would automatically create the appropriate subdomain in the filesystem and insert the appropriate .htaccess file for the redirect.
Doing this would make CPanel a much more valuable solution for companies and individuals that do
SEO web hosting.
SEO's know the value in having proper 301 redirects setup and doing this at the WHM level means you can automatically do this when new accounts are created.
Thanks in advance for reading my suggestion.