Submit Your Article Forum Rules

Results 1 to 6 of 6

Thread: .SHTML and search engines

  1. #1

    .SHTML and search engines

    Hi - I recently decided to clean up a lot of code by removing a big chunk of repetitve code from all my files and using a server side include to reference it. It works, but only if the files that do the including have .shtml endings (which my hosting provider said was necessary for the SSIs to work)

    What's shtml and do search engines penalize us for using shtml endings (ie is the included code invisible to the engines or the shtml files invisible themselves)?

    Thanks,
    dave
    phonesource.com

  2. #2
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,771
    Hi,

    The .shtml extension is necessary in order for the server to read the page as one and be able to parse those include files as one.

    It's become quite the common practise nowadays.
    I use it, but with .php
    No, you won't get penalized
    Web Hosting Guru
    | Need Help For Your Forum?

  3. #3
    WebProWorld MVP
    Join Date
    Jul 2003
    Posts
    1,933
    Hi Dave:

    If you change all your page names from .html to .shtml they are all new pages as far as the search engines are concerned, and as far as links are concerned too,so it can be a bit of a problem. If a search engine has an html page of yours ranked for a term and a user clicks on the .html link when you have changed the pages to .shtml they will get a 404 error.

    If you are hosted on an Apache server and have mod_rewrite installed, you can set it up so that server side includes will work with .html pages saving you the work of getting all your links changed etc.

  4. #4
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,771
    Ahh, yes...

    Further to Mel's post,
    There's a couple things you can do through apache re-writes
    Permanent re-direct and extension modification
    The latter one, I don't have off the top, but for redirects...

    Create a file called htaccess.txt with notepad and insert the following:
    Redirect permanent /oldpage.html http://www.yourdomain.com/newpage.shtml

    so atleast if your pages are in SE's index, they'll get re-directed to the new pages.
    Just add additional lines for each page, you've changed
    Upload the file to your root directory and change the name to .htaccess
    Web Hosting Guru
    | Need Help For Your Forum?

  5. #5
    WebProWorld MVP
    Join Date
    Jul 2003
    Posts
    1,933
    You can also do the extension modification in the htaccess file, but rather than explain it all here there is a nice tutorial at:
    http://www.avsfriendly.com/tutorials...ess.html#myssi

  6. #6
    thanks to everyone for all the help - great forum!

    - dave cook

Similar Threads

  1. Sponsored search results at major search engines can lead to malware
    By Clint1 in forum Internet Security Discussion Forum
    Replies: 3
    Last Post: 10-09-2009, 02:56 AM
  2. Do any Search Engines give daily results for search terms?
    By nipplecharms1 in forum Google Discussion Forum
    Replies: 20
    Last Post: 03-29-2007, 02:20 PM
  3. Updated List Of Answer Search Engines & Travel Search Engin
    By WPW_Feedbot in forum Search Engine Optimization Forum
    Replies: 0
    Last Post: 09-15-2005, 06:30 PM
  4. Travel Search Engines Bump Hotels From Top Search Listings
    By WPW_Feedbot in forum Search Engine Optimization Forum
    Replies: 0
    Last Post: 09-07-2005, 08:30 AM
  5. Will search engines index shtml files?
    By lahddah in forum Search Engine Optimization Forum
    Replies: 3
    Last Post: 08-06-2004, 04:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •