Mobile app version of vmapp.org
Login or Join
Cooney921

: Www.mysite.com/ and www.mysite.com/index.html dupe content? I am running a static web site via Apache. So, if you visit http://www.mysite.com/products, http://www.mysite.com/products/, and http://www.mysite.com/products/index.html,

@Cooney921

Posted in: #DuplicateContent #Seo

I am running a static web site via Apache. So, if you visit www.mysite.com/products, www.mysite.com/products/, and www.mysite.com/products/index.html, you see the same thing.

Will this result in dupe content, from Google's perspective? Should I htaccess redirect www.mysite.com/products and www.mysite.com/products/ to www.mysite.com/products/index.html?
I have DirectoryIndex set to index.html. Further, I have the following meta tags in place:

On the home page:

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


On the products page:

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

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney921

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

What you have done with defining canonicals is correct Chad. Although if the duplicate pages don't need to be accessed independently of the main page, I myself always try to implement 301 redirects in the 1st instance. 301 redirects are the preferred choice, as canonicals tags are a hint, not an absolute directive.

If you are actively linking to any of these 'duplicate pages' (such as a home link linking to example.com/index.html, rather than the root example.com/) you should update your internal linking to reflect your canonical URLs where possible.

Also make sure any sitemap.xml files only include the main 'canonical' URLs. Duplicate pages, or any pages redirected, canonicaled or blocked else where should not be included in sitemap.xml files.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme