Welcome to WebmasterWorld Guest from 23.22.140.143

Message Too Old, No Replies

Switching .html to .shtml - does it matter?

     
3:17 am on May 29, 2009 (gmt 0)

Full Member

10+ Year Member

joined:May 2, 2004
posts: 211
votes: 0


I'm switching my site to use includes and therefore need to change my pages from index.html to index.shmtl

will G see these as different pages? I'd rather not 301 all of them...

thanks

4:01 am on May 29, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Yes, if you change the extension that will create a new url and 301 redirects would be the best practice.

However, you do not need to change the file extension to use includes - there are other options. See: [webmasterworld.com...]

8:58 am on May 29, 2009 (gmt 0)

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0


By using a rewrite you can continue to use the same URLs for your pages (URLs are defined by what is in the links *on* your pages) and 'associate' that URL with a different physical filename on the server.

I use PHP a lot, and there's also a way to tell the server that even though the filename ends .html to still go and look inside it for PHP code. With that method, you don't need the rewrite at all.

So, there's at least two ways to achieve this; neither of which see you having to change the URLs that users 'see' and 'use'. That is always a better method than changing URLs, with all the attendant ranking and traffic losses.

See also "Cool URIs don't change" by Sir Tim Berners-Lee.