The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Canonical Redirect using cpanel?

Discussion in 'General Discussion' started by gazza2k9, Dec 8, 2008.

  1. gazza2k9

    gazza2k9 Registered

    Joined:
    Dec 8, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi - I'm new to this forum but also new to cPanel and hoping someone can help me.

    Is it possible to set up canonical redirect using the redirect function in cPanel?

    Right now, if somebody types mydomain.com OR www.mydomain.com into their browser they get to my homepage but the address they actually typed remains unchanged.

    My understanding is that Google will treat both adddresses as two distinct pages so my PR / backlinks will be diluted.

    I want to redirect mydomain.com to www.mydomain.com and was wondering how to do this using the redirect tool in cPanel.

    I'm not a programmer and on a shared server so want to avoid changing scripts, etc.
     
  2. sunil001

    sunil001 Member

    Joined:
    Oct 19, 2005
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Hi,

    No need to change scripts, just login to cpanel and click on redirects

    select Type as permanent

    select your domain name

    Redirects to : give http://www.yourdomain.com

    If you are using cpanel theme x3, click on radio button : do not redirect with www. (not manditory)

    Regards
    http://ehostpros.com
    Cheap web hosting
     
    rhenderson likes this.
  3. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Good post, we use .htaccess file:

    <IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^www\.domain\.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    </IfModule>
     
Loading...

Share This Page