1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Changing extensions : .HTML ---> .SHTML

Discussion in 'Apache' started by cdx, Jun 18, 2005.

  1. #1
    Hey Everyone...

    I decided to make includes of files as header, footer and a menu .
    Now- I relized I need to change all my extensions into SHTML otherwise, it's not going to help.

    Few questions:

    1.What the best way to do it ? Is it possible to make include-files without changing the the extension (I saw the include file only after I change the extention to .shtml) maybe there is another way?

    2. I am afraid that will heart my rank in google. Is it going to make any changes in search engines?

    Thanks in advance,

    Guy.
     
    cdx, Jun 18, 2005 IP
  2. kaptain

    kaptain Peon

    Messages:
    194
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you actually have a couple options.

    i did the same thing about 8 months ago and added this to my .htaccess file

    AddType text/html .shtml
    AddHandler server-parsed .html .htm
    Options Indexes FollowSymLinks Includes

    but a couple months ago i realized i would have more flexibility with parsing .htm as php rather than .shtml so i replaced the above with

    AddType application/x-httpd-php .php .htm .html
     
    kaptain, Jun 18, 2005 IP
  3. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Right on Kaptain. cdx, if you do however choose to change the extentions, (not really needed) but if you do, make sure you use a mod_rewrite to 301 redirect your old urls to the new ones to avoid negative SE karma.
     
    exam, Jun 18, 2005 IP
  4. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #4
    J.D., Jun 18, 2005 IP