homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

Switching .html to .shtml - does it matter?

 3:17 am on May 29, 2009 (gmt 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...




 4:01 am on May 29, 2009 (gmt 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)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved