Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to save a file as *.shtml correctly

    Hi,

    When I safe index.html as index.shtml and upload it to my yahoo account it is safed as index.shtml.txt.

    However, the server-side includes are working, but I can not rename the file index.shtml

    Why is that, how do other people do this, what am I doing wrong?

    The site is on an apache server and I have no control over the htaccess file

    Thanks
    Jerome
    Last edited by Jerome; 10-21-2004 at 09:01 AM.

  • #2
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Probably because windows likes to add .txt to everything.

    Next time you save the file locally, instead of typing:

    myfile.shtml

    put quotes around it:

    "myfile.shtml"

    That usually overides this windows "feature".

  • #3
    Regular Coder
    Join Date
    Oct 2002
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi bcarl314,

    Indeed between quotes gives a real *.shtml file, only it's not accepted at my account?!?

    The list off supported mime-types from my account shows:
    text/html htm html shtm shtml hhc hhk

    The server-side include in the *.shtml file is just:
    <!--#include file="test.htm"-->

    When I save a *.html file as *.shtml, without using quotes, I can upload it, but then it's changed to *.shtml.txt. Then www.widgetdesign.com doesn't work, however without www it's working, I am flabbergasted......

    I thought SSI was easy!

    Thanks for Your time,
    Jerome

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    What are you using to upload your files?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    Regular Coder
    Join Date
    Oct 2002
    Posts
    299
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Spookster,

    Thanks, I used an account upload service, with a proper ftp programm it's working.

    Jerome


  •  

    Posting Permissions

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