gennsearch
12-06-2006, 04:34 PM
Hello everyone, I have a question.
One of my sites www.keyword.ca also has www.domain.com and www.domain.ca
I want to redirect the www.domain.ca and the www.domain.com sites to the keyword.ca
I have noticed that they are some pages that indexed in Google with the .com and .ca and would seem to be duplicate content.
Should I redirect them with my .htaccess file? And I also want to redirect the non www\ to the www.keyword.ca
And is this correct format
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^www.domain.ca [nc]
rewriterule ^(.*)$ http://www.keyword.ca/$1 [r=301,nc]
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^www.domain.com [nc]
rewriterule ^(.*)$ http://www.keyword.ca/$1 [r=301,nc]
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.keyword\.ca [NC]
RewriteRule (.*) http://www.keyword.ca/$1 [R=301,L]
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
also what is the differance with the [R=301,L]
and the [r=301,nc]
Thank you in advanced
One of my sites www.keyword.ca also has www.domain.com and www.domain.ca
I want to redirect the www.domain.ca and the www.domain.com sites to the keyword.ca
I have noticed that they are some pages that indexed in Google with the .com and .ca and would seem to be duplicate content.
Should I redirect them with my .htaccess file? And I also want to redirect the non www\ to the www.keyword.ca
And is this correct format
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^www.domain.ca [nc]
rewriterule ^(.*)$ http://www.keyword.ca/$1 [r=301,nc]
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^www.domain.com [nc]
rewriterule ^(.*)$ http://www.keyword.ca/$1 [r=301,nc]
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.keyword\.ca [NC]
RewriteRule (.*) http://www.keyword.ca/$1 [R=301,L]
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
also what is the differance with the [R=301,L]
and the [r=301,nc]
Thank you in advanced