SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am having trouble getting server side includes on my apache webserver to work. I check out the information about ssi and followed the directions and made the test.shtml file. But, it does not work. Do any of you have any suggestions or something that could help me out, i would really appreciate it. Thanks.

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, there could be about a million and a half reasons it doesn't work. Are you getting error messages? Nothing at all? Have you looked at:
    http://artsackett.com/grey_papers/ssi/rest_of_us.html http://adashimar.hypermart.net/ssi.htm http://www.apacheweek.com/features/ssi http://hoohoo.ncsa.uiuc.edu/docs/tut.../includes.html http://bignosebird.com/ssi.shtml http://www.apache.org/docs/mod/mod_include.html



    ------------------
    "Whatever can be said can be said clearly." -- Ludwig Wittgenstein

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the urls. When i look at the test.shtml file i just see nothing exept the html, here it is: http://dreamer.spacecoast.com/test.shtml No, i did not look at those sites, but i will.
    Thanks!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote/font><HR>Originally posted by JoelFord:
    Well, there could be about a million and a half reasons it doesn't work. Are you getting error messages? Nothing at all? Have you looked at:
    http://artsackett.com/grey_papers/ssi/rest_of_us.html http://adashimar.hypermart.net/ssi.htm http://www.apacheweek.com/features/ssi http://hoohoo.ncsa.uiuc.edu/docs/tut.../includes.html http://bignosebird.com/ssi.shtml http://www.apache.org/docs/mod/mod_include.html

    <HR></BLOCKQUOTE>


  4. #4
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My guess is that your host does not allow you to use SSI or if it does it isn't enabled by default (I see no reason why if they do allow you to use SSI).

    Create a file called .htaccess (You need the . ) in the root of your website and add the following lines:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    AddType text/html .shtml
    AddHandler server-parsed .shtml
    [/code]

    now try the page again, if it still doesn't work then contact your host and ask them if they allow SSI (They might still allow you, but not all hosts allow you to use the .htaccess file).

    ------------------
    Karl Austin
    KDA Web Services
    "Everyone has a photographic memory. Some just don't have film."

  5. #5
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I am the admin of my server. I will create the .htaccess file. Thank you!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote/font><HR>Originally posted by Karl:
    My guess is that your host does not allow you to use SSI or if it does it isn't enabled by default (I see no reason why if they do allow you to use SSI).

    Create a file called .htaccess (You need the . ) in the root of your website and add the following lines:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    AddType text/html .shtml
    AddHandler server-parsed .shtml
    [/code]

    now try the page again, if it still doesn't work then contact your host and ask them if they allow SSI (They might still allow you, but not all hosts allow you to use the .htaccess file).

    <HR></BLOCKQUOTE>


  6. #6
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Problem solved. I got my server side includes to work. Thanks for all the help!


Bookmarks

Posting Permissions

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