SEO experts sometimes demand that default document, e.g. www.site.com/index.html redirects with 301 to www.site.com, so:

  1. Is that really necessary?
  2. Does Google really penalize that?
  • You can configure Apache and IIS to not display the default document, which would save you a 301. You should also remember to specify the default document URL in Google Analytics if you use that or it will track / and /index.html separately. May 16, 2012 at 14:46
  • @toomanyairmiles How do you configure Apache (and IIS for that matter) to not display the default document, thus saving a 301? I assume that Apache would still have to perform a 301 at some point, as otherwise the "index.html" would still remain in the users address bar; wouldn't it?
    – MrWhite
    May 17, 2012 at 15:24
  • @w3d depends on the scenario, you can configure it to not show the document extension or not to show the page name. If this is done from launch then google will never be aware, if not then you'd have to remove the offending pages from the index via webmaster tools. The same technique is applicable in IIS. I don't have the httpd.conf code to hand but the IIS method is discussed here: forums.asp.net/post/361749.aspx. Ultimately the server doesn't have to show the page name to a browser or search engine. May 17, 2012 at 15:33

2 Answers 2


They were right to do that although a canonical URL would have also sufficed. Technically speaking those are two different URLs and thus considered two different pages. So the 301 redirect, or canonical URL, tells Google that both are the same page and to handle it accordingly.


While all the answers on this page are correct this is such a common issue that I think Google is smart enough to work things out here =)

  • exactly my thoughts, but better be safe then sorry :) May 17, 2012 at 13:57
  • ive always wandered that too, has any one seen it confirmed ?
    – sam
    May 17, 2012 at 13:58
  • You could create an experiment and see what Google does. We do this all the time. It is better to give SEO recommendations on things you have observed first hand =)
    – Sandy Lee
    May 17, 2012 at 13:59
  • 1
    Google might not penalise your site in this instance, but if both URLs (with and without the default document) are accessible and no canonical URL is specified then you potentially have a duplicate content issue... Google will only index one or the other. It might index some URLs with "index.html" and some without. So there is now an inconsistency/mismatch in your indexed URLs. "index.html" provides no SEO benefit and users will generally prefer the shorter URL minus the default document.
    – MrWhite
    May 17, 2012 at 18:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.