Welcome to WebmasterWorld Guest from

Forum Moderators: Robert Charlton & aakk9999 & andy langton & goodroi

Message Too Old, No Replies

index.htm and index.html - does it matter to google?

9:40 am on Feb 3, 2014 (gmt 0)

Junior Member

10+ Year Member

joined:July 9, 2005
posts: 53
votes: 0

I have an old site whose pages have .htm extensions. Does it matter in terms of seo if the same pages are uploaded with .html extensions? will the .html pages be considered new urls or different from the old .htm pages and lose the ranking they have?
3:39 pm on Feb 3, 2014 (gmt 0)

Full Member

10+ Year Member

joined:May 3, 2003
votes: 20

Yes it matters - they are different pages.

Either keep using .htm extensions, or 301 redirect the old .htm version of the page to the new .html version.
4:29 pm on Feb 3, 2014 (gmt 0)

Junior Member

joined:Oct 24, 2011
votes: 0

Out of curiosity, why change to HTML? In my experience most site upgrades result in the loss of the file extension altogether.

Given a choice, I would try to preserve the .htm on any legacy pages to avoid creating any issues. If for some reason you have to change, then make sure you put up your redirects, and consider leaving your navigation pointing to the old .htm pages for a week or so to ensure Google finds the redirects... otherwise you can give yourself a temporary duplicate content problem.
5:09 pm on Feb 3, 2014 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
votes: 289

The title of the thread implied an entirely different question with an entirely different answer.
index.htm or index.html

There the answer becomes: it doesn't matter in any way at all whatsoever because the visitor-- whether human or robot-- will never see the extension or even the word "index". If you have both htm and html, set a DirectoryIndex line to include both options, and make sure your index redirect includes an optional l.

The MultiViews aspect of mod_negotiation (assuming Apache) can serve up an available .htm file if the requested .html doesn't exist. But it's not something a site should rely on. Especially since I can't figure out whether the response is a 301 or direct serving of the variant file.
2:07 am on Feb 4, 2014 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 10

[mods note]i changed the "or" to "and" in the title[/mods note]

if you are asking about .htm vs .html extensions in general, you should pick one and 301 redirect requests for the other to the one you picked.
if you are asking about /index.htm vs /index.html urls specifically, they should be 301 redirected to the directory root ("trailing slash url") and a default directory index document should be specified:
DirectoryIndex index.htm index.html

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members