Best Practice SEO: File Extension or No?

I got into a discussion today at work over whether or not having an .html file extension has any SEO benefits over an extensionless directory-style url. I did a little research online and found just about equal arguments for either side.

On the .html file extension side, the argument is that having a file extension makes any keyword-rich naming appear human-generated rather than computer-generated, since html files are typically static files. They also argue that a page named “/awesome-page.html” is considered one level higher than one named “/awesome-page/” and that higher level pages get more indexing-juice.

On the other side, the argument is basically that it doesn’t matter. It’s likely that Google does not really assign more weight to a page with an .html file extension, as extensions can easily be generated dynamically. Surely, Google or other search engines aren’t so naive as to make an assumption such as, “If the page has an .html extension it must be static”. Secondly, while it is true that pages higher up in the directory structure of a site get more weight in indexing, it’s also true that this is considered in relation only to the site itself. At that point, the argument becomes moot, since whether the site structure starts at level 0 or level 1, all sub-levels will line up equally. Lastly, and perhaps most importantly, the W3C recommends directory-style urls over extensions (under the heading, “What to leave out”).

Regardless, there does seem to be valid points on both sides, so what do you think?

  • Del.icio.us
  • Digg
  • Facebook
  • Google Bookmark
  • StumbleUpon
  • Technorati
  • Abe
    Just what I've been looking for, thanks!

    I will use...
    /%category%/%post_id%/%postname%.html

    Instead of...
    /%category%/%post_id%/%postname%/

    All the small changes add up in google's eyes :)
  • Pete Hurst
    This recently came up for me. Having been given about 30-40 static html pages by an "SEO" company and asked to turn these into a dynamic e-commerce site (using our existing platform) - from various conversations with them apparently having the .html extensions was in itself part of their "magic formula" for SEO.

    So far I have written our platform to implement extensionless URLs. I think it looks nicer, for a start. I'd previously been led to believe it was better for SEO - but clearly concrete information on this is mixed in opinion.

    More importantly, in the world of HTTP, we do not need file extension to infer the type of file we are downloading. That's the job of MIME. File extensions are very much tied to Windows and as such have no place in a cross-platform data interchange environment.

    So whatever eventually turns out to prove marginally better for SEO, in terms of standards and professionalism I have to go extensionless. Google will typically follow where the standards lead; if the sites with the highest quality and most relevant content are all extensionless, then Google will adjust their algorithms to suit those sites better.

    Whenever I have a difficult SEO decision to make, I always find the two biggest factors end up being Standards and Content. If you are doing everything right, SEO is no longer even something you have to intentionally think about.
  • robbykeller
    The File Extension DMG file could be described as the Apple version of a .EXE (Exectuble File) and replaced Mac OS Xs .IMG format. As a disk image format the file maps a folder tree and its contents allowing the file to be virtually mounted on the computer as if it were a real drive. However the File Extension DMG format can be mounted as a drive irrespective of whether it is an image of an existing device or not, and is used to distribute Apple software. Repair File Extensions http://dmg.extension-file.com
blog comments powered by Disqus