A CHALLENGE for all you Web geniuses!

Discussion in 'Site & Server Administration' started by blairtro, Dec 12, 2006.

  1. #1
    No ONE on EARTH has been able to come up with a solution with my problem!

    Can you?

    Background: My website is in a "shared" Windows hosting environment so I don't have access to the IIS "control panel". My website consists of web pages with the .html extension.

    Problem: I want to use Server Side Includes (SSI). This only works if my files have the .shtml extension.

    Sooo....It's not as simple as renaming all my files because then I lose everything indexed by Google and other search engines.

    Soooo. the idea is I duplicate all my files so they have .shtml extension and I put some sort of 301 redirect in my original .html files.

    This is the problem! No one out there in the webworld can tell me how to do a 301 redirect to my new .shtml pages! Javascript won't do it! I can't use htaccess, asp, php or anything else!

    Any solutions out there? :confused: :confused:

    Thanx in advance!

    Blair
     
    blairtro, Dec 12, 2006 IP
  2. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #2
    Dont worry, there is a solution on this, I will come back later with the answer if I can remember it, something to put in .htaccess if I am not wrong.

    edit:

    Here, I dont remember if this is all the code, but you should at least get a clue from this:

    AddHandler server-parsed .html
    AddHandler server-parsed .htm
    Options +FollowSymLinks

    I had something like that in my .htaccess and then ssi worked perfect.

    I suggest that you put this in your .htaccess and try.

    Give me BIIIIIIG green if it works, cause I actually dont know anything about .htaccess:)
     
    login, Dec 12, 2006 IP
  3. kh7

    kh7 Peon

    Messages:
    2,715
    Likes Received:
    109
    Best Answers:
    0
    Trophy Points:
    0
    #3
    he said - no .htaccess .... I think the solution is to change hosting.
     
    kh7, Dec 12, 2006 IP
  4. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #4
    htaccess is an Apache tool, won't work on Windows.

    Solution: Dump your server.

    Alternative Solution: Meta refresh all .html to .shtml and keep your fingers crossed Google will treat it as a 301.
     
    T0PS3O, Dec 12, 2006 IP
  5. keywordguru

    keywordguru Peon

    Messages:
    206
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you can use SSI extensions as .shtml, there has to be a way to change it on a Windows Server.

    Just to understand correctly, you already have .html and are considering using .shtml for SSI includes?

    In a linux world, instead of using .shtml, simply change your .htaccess to allow .html files to also be used as SSI includes. I use SSI includes religiously and they are all .html files.

    Add this to your .htaccess and give it a shot:
    AddHandler server-parsed .html

    This will allow .html's to be used globally as SSI includes.

    Be sure to report back if this is the solution because I am curious to know if this was in fact your original question and need.

    Thanks
     
    keywordguru, Dec 12, 2006 IP
  6. blairtro

    blairtro Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Unfortunately, "Htaccess" only works in the UNIX world..

    It won't help me in Windowsland. I want to switch from .html to .shtml because this is the only way I can get Server Side Includes (SSI) to work..

    /Blair
     
    blairtro, Dec 12, 2006 IP
  7. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #7
    the fastest, cheapest and most simple solution to your problem is to change to the ONE server-OS most smart webmasters are using for a reason ...
    Linux !

    most hosts have BOTH win and Linux in their program - hence a change wihtin same host comapny from win to Lin might be a matter of minutes or hours to accomplish and all your problems are instantly gone for good.

    else
    a host change is the other option to solve your current problems and all future problems as well

    even a dedicated server to have FULL control might be an option of your knowledge allow you to control your own site
     
    hans, Dec 13, 2006 IP