WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Search Engines > Search Engine Optimization Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-02-2004, 11:44 AM
Bluesuit Bluesuit is offline
WebProWorld Member
 

Join Date: Aug 2004
Location: London, UK
Posts: 41
Bluesuit RepRank 0
Default Changing from index.html to index.shtml

Do i need to use a 301 redirect if I change my index.html file to index.shtml? or will the search engines automatically pick up the new index file and preserve my ranking etc.? All my other files have remained the same - it's just the index name that has changed.

Bluesuit
Reply With Quote
  #2 (permalink)  
Old 09-02-2004, 02:58 PM
robinev robinev is offline
WebProWorld Member
 

Join Date: Jun 2004
Location: Seattle WA USA
Posts: 86
robinev RepRank 0
Default

Yes, but make sure you check with your host to verify that the extension change is necessary.

Apache servers (which is what most hosts use) can be configured to serve SSI files without the ".shtml" extension. If your host's server is configured for the feature, the server will treat any ".html" file as an SSI file if its user execute bit is set [chmod u+x file.html]. (All of the files on my site are SSI [for now], but they use the standard ".html" extensions.)

You could find out if it works on your server by setting the execute bit on a test file that has a standard ".html" extension and that has <!--#include ... commands. Try to open it to see if the server parses the file for the includes.

Queen City Cruise Seattle's outrageous gay cruise party
Reply With Quote
  #3 (permalink)  
Old 09-02-2004, 03:57 PM
rlrouse's Avatar
rlrouse rlrouse is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Posts: 659
rlrouse RepRank 0
Default

If you use .htaccess to force the server to parse HTML files for SSI, you don't have to rename any files at all or use any redirects, and its very easy to do. Just add these lines to your .htaccess file:

Options Includes
AddType text/html .html
AddHandler server-parsed .html

I use SSI on every page of all of my sites, and they all end with the .html extension.
__________________
Picture Of The Day
Reply With Quote
  #4 (permalink)  
Old 09-02-2004, 04:43 PM
jestep jestep is offline
WebProWorld 1,000+ Club
WebProWorld Moderator
 

Join Date: May 2004
Location: Austin, TX
Posts: 1,328
jestep RepRank 0
Default

I agree, we did this with our server to make it parse html as php. It saves a lot of work, and you dont loose any pages in the SE index. Definately the best way to do it.
Reply With Quote
  #5 (permalink)  
Old 09-02-2004, 06:12 PM
Bluesuit Bluesuit is offline
WebProWorld Member
 

Join Date: Aug 2004
Location: London, UK
Posts: 41
Bluesuit RepRank 0
Default

Many thanks for all your replies. That's very helpful.

Bluesuit
Reply With Quote
  #6 (permalink)  
Old 09-02-2004, 09:12 PM
robinev robinev is offline
WebProWorld Member
 

Join Date: Jun 2004
Location: Seattle WA USA
Posts: 86
robinev RepRank 0
Default

But if the server is set up with the "X-bit hack", it can be a useful alternative to the .htaccess parse instruction.

(I've been using both lately. I use the X-bit to identify SSI, but use the .htaccess parse instruction for some php-include test files.)

Among other things, the X-bit hack allows the user to tell the server to send "last-modified" with some (or all) SSI files. That's not something it normally does (as I understand it).
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum
Tags: changing, indexhtml, indexshtml



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Search Engine Friendly URLs by vBSEO 3.0.0