Welcome to WebmasterWorld Guest from 54.226.246.160

Message Too Old, No Replies

Switching .html to .shtml - does it matter?

     

gmac17

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

10+ Year Member



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

tedster

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

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



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...]

g1smd

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

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



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month