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
    Jun 2002
    Location
    Louisville, KY
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ssi language w/o extension

    I'm only a little familiar with php and asp. Are there any ssi languages out there that do not require you to change the file extension? I'd rather just keep all of my files .html in order to minimize 404 errors.

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,273
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Im not positive but I believe you can add in a .htaccess file command to tell the server to parse your .html files as .shtml files.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Regular Coder Feyd's Avatar
    Join Date
    May 2002
    Location
    Los Angeles, CA Maxim: Subvert Society
    Posts
    404
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No such thing as 'SSI languages'...just SSI, but anyways:

    add this to an htaccess file for your site:

    Code:
    AddType text/x-server-parsed-html .html
    But remember, this will cause all of your pages to be parsed as including SSI commands, even if they do not have any SSI within them...this has the potential to slow down your site in a noticeable manner, especially on slower machines. I'd recommend you go with PHP, instead, for real-world heavy use.
    Moderator, Perl/CGI Forum
    shadowstorm.net - subvert society

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Louisville, KY
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I was under the impression that php, asp, shtml were all server side include languages. Since I am most familiar with php, is there a way to have an html page parsed as a php page? I'm assuming the code that you gave me, Spookster, works for shtml.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41 8' 52" N -95 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If it's like any other language, all you should have to do is rename it to .php, or have your parser execute .html scripts as .php, etc.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

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