Canonical Redirect using cpanel?

gazza2k9

Registered
Dec 8, 2008
1
0
51
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.
 

rhenderson

Well-Known Member
Apr 21, 2005
778
2
168
Oklahoma
cPanel Access Level
Root Administrator
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
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>