Community Forums
Connect with us on LinkedIn
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    1

    Default Built in support to automatically 301 redirect canonical urls

    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?
    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:
    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 Example Web Page 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.

    And if you can't include this can someone point me to a developer I can pay to code an addon to do this?

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb Re: Built-in support to automatically 301 redirect canonical urls

    Quote Originally Posted by benfitts View Post
    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.
    It is possible for users to setup redirects in cPanel via the following menu path:
    cPanel: Main >> Domains >> Redirects

    Please be aware it is not incorrect behavior to create the "www" sub-domain in the form of a DNS CNAME record that points back to the parent domain name DNS A record; this is normal behavior and standard practice in the web hosting industry. Subjective search engine optimization (SEO) practices do not define correct and incorrect behavior; however, as the server administrator or web site owner you may choose how to setup your individual web sites.

    Quote Originally Posted by benfitts View Post
    And if you can't include this can someone point me to a developer I can pay to code an addon to do this?
    The following area within the Advertising Forums may be used to post job offers: Server Management and Server Repair - cPanel Forums

    Moderator Note: The thread is being closed as the feature is implemented in the form of allowing users to setup redirects via cPanel.
    Last edited by cPanelDon; 02-17-2010 at 11:25 PM. Reason: Correction of typo

Similar Threads & Tags
Similar threads

  1. Need help with sitewide 301 Redirect
    By nels in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-15-2011, 12:46 AM
  2. 301 Redirect for SEO
    By mickalo in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-05-2011, 05:29 PM
  3. 301 Redirect
    By Adam Hunter in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-14-2010, 10:29 AM
  4. Canonical Redirect using cpanel?
    By gazza2k9 in forum New User Questions
    Replies: 2
    Last Post: 12-09-2008, 09:53 PM
  5. Addon, Sub Domains and 301 redirect...
    By madtom in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-18-2007, 12:25 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube