Transferring pages from html to shtml

Discussion in 'Site & Server Administration' started by MediaHustler, Jan 11, 2006.

  1. #1
    Is there any effects when it comes to search engine? Does one tend to like the other better?
     
    MediaHustler, Jan 11, 2006 IP
  2. Immorta

    Immorta Peon

    Messages:
    379
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I wouldnt actually switch but rather use a .htaccess file to parse the html files as shtml.

    This only applies if you are on a Linux server however.
     
    Immorta, Jan 12, 2006 IP
  3. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's good advice. Not because SE's will devalue shtml files, but because you don't want to loose your cached pages or incoming links.
     
    mdvaldosta, Jan 12, 2006 IP
  4. vri

    vri Peon

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you are on windows you can adjust the server settings so that includes files can be read with the html extension and skip the shtml alltogether.
     
    vri, Jan 13, 2006 IP
  5. Labcoat88

    Labcoat88 Peon

    Messages:
    192
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Immorta's idea is actually pretty good if you're able to do it. Saves you from having to rename pages, and avoids worry about SE re-indexing.

    FWIW, the big win with .shtml is that you can do server-side includes, so your pages can be built dynamically from templates rather than purely static whole-page html files.

    LC
     
    Labcoat88, Jan 20, 2006 IP
  6. dougyt

    dougyt Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Can anyone give some more information on using .htaccess files, I have used them, but don't understand what I actually did, or why. I like to know why I changed a file, and what it does, and what else it may do for me later.
     
    dougyt, Jan 22, 2006 IP
  7. my44

    my44 Peon

    Messages:
    722
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #7
    True indeed. I already did like hundreds of .html pages manually (LOL) before I learnt about .shtml and SSI. Not really sure to convert it because most of the original pages have been cached by SEs. I could risk losing a lot of visitors.

    But from now on, with newer sites, it'll be SSI or PHP-include all the way. Great stuff.
     
    my44, Jan 22, 2006 IP
  8. Labcoat88

    Labcoat88 Peon

    Messages:
    192
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Labcoat88, Jan 22, 2006 IP
  9. Immorta

    Immorta Peon

    Messages:
    379
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Basically create a file in the relevant directory of your server (LINUX / UNIX ONLY) that you want the html to be parsed as shtml and call it .htaccess

    In that file add the following.

    You can do a similar thing if you use php but want to show the files as html by doing the following...

    Hope that helps...
     
    Immorta, Jan 23, 2006 IP