Mobile app version of vmapp.org
Login or Join
Berumen354

: Clicking to index.html does not show that rel="canonical" on home page is working I am trying to use link rel="canonical" to ensure that my home page (example.com/index.htm) is not considered

@Berumen354

Posted in: #DuplicateContent #Seo

I am trying to use link rel="canonical" to ensure that my home page (example.com/index.htm) is not considered as duplicate content with example.com/ (Site is on APACHE server)
Placing

<link rel="canonical" href="http://www.example.com/" />


or

<link rel="canonical" href="http://www.example/index.htm" />


in HEAD section of index.htm does not seem to work. (Tested live by clicking on index.htm links on other pages.)

What is it that I am doing wrong?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Berumen354

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

The <link rel="canonical"> tag will not affect how browsers and users interact with your site. Some visiting www.example/index.htm with a canonical tag of <link rel="canonical" href="http://www.example.com/" /> will not be redirected to example.com. And that's okay because that's not what supposed to happen. The canonical tag just tells Google which URL to use in their index and to consider the canonical URL for that content.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme