Magic
Forum Admin
Sr. Member
    
Offline
Posts: 97

|
 |
Canonical URLs
on May 05 2008, 10:11 PM |
|
Canonical means that the URL conforms to a standard or general rule.
http://www.somesite.com & http://somesite.com are both examples of a canonical URL.
In SEO the problem arises when Google and the other robots detect that . . . with two URLs . . . you may be trying to duplicate your content in the search results. For that reason allow only one of these canonicals to resolve to your site.
You can do this by creating a .htaccess file in a text editor such as Windows Notepad and uploading that file to the root of your site.
RewriteEngine On RewriteCond %{HTTP_HOST} ^somesite.com$ RewriteRule ^(.*)$ http://www.somesite.com/$1 [R=301,L] Don't forget to change the domain name "somesite" to your own.
Note: Strictly Apache
Magic.
|