homepage Welcome to WebmasterWorld Guest from 54.166.62.226
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Change from .shtml to .html without
I want to change my pages from
Kmax

10+ Year Member



 
Msg#: 807 posted 2:44 am on Mar 16, 2002 (gmt 0)

.shtml to .html....
Anyone have any clues on how I can do this and not lose my listing?
It wont matter on my index page.... But all of my other pages will have to start from scratch I guess....
Any tips?

 

john316

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 807 posted 2:50 am on Mar 16, 2002 (gmt 0)

addhandler server-parsed .html

Add this to your .htaccess file and change the file extensions in your site to reflect .html; the html pages will execute just like the shtml

Kmax

10+ Year Member



 
Msg#: 807 posted 2:54 am on Mar 16, 2002 (gmt 0)

I should have been more specific. The reason I am changin the extension is because right now I am using an include for the top of all of my pages... so the <title> is the same for all of them...
I want to just hard code each page so I change the title....

john316

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 807 posted 2:56 am on Mar 16, 2002 (gmt 0)

No reason to change the extension, just hard code the titles, the pages will still display.

littleman

WebmasterWorld Senior Member littleman us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 807 posted 3:01 am on Mar 16, 2002 (gmt 0)

Kmax, if you do go ahead and change your extensions 301 redirect all your .shtml pages to the .html versions. If you do that googlebot will fallow the redirect and drop your old pages.

Kmax

10+ Year Member



 
Msg#: 807 posted 3:33 am on Mar 16, 2002 (gmt 0)

Thanks everyone!
I should have thought of that... just take out the include and name the page to .shtml....

chiyo

WebmasterWorld Senior Member chiyo us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 807 posted 4:50 am on Mar 16, 2002 (gmt 0)

i guess the same thing applies. if we want to make .htm pages to be able to have SSI we change the string for the.htaccess like

addhandler server-parsed .htm
?

If so does that have any affect on our .php extension pages?

do we have to do anything to them or will they just be ignored?

sorry for being a dunce

littleman

WebmasterWorld Senior Member littleman us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 807 posted 5:18 am on Mar 16, 2002 (gmt 0)

Chiyo, the same process will work with .htm, and it shouldn't affect your .php pages.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
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