32209 Posted January 27, 2010 Report Share Posted January 27, 2010 Can anyone tell me why server side includes(SSI) are not working on my website? After several hours of trying to solve it myself I asked Hawkhost support if SSI and AllowOverrides is enabled on my website. They said yes. Nonetheless, I still can not get included files to show on my website. W3C validates the specific pages in question as HTML 4.01 Transitional, iso-8859-1, with no warnings or errors. The includes are working fine on another, older, Hawhost hosted site of mine. I even tried to use the cPanel preinstalled "Random HTML" script, which uses an include statement, and it will not work, either. I have added and removed apache handlers and mime types, I have used .shtml on the pages in question, I have disabled .htaccess to see if that is the cause, I have added a .htaccess in the directory where the pages in question are located, I have changed the file extension of the included file, I have changed the file permissions for the webpages with includes in them to 754. After over 12 hours struggling with this issue I have done everything I can think of and used every suggestion I found searching the Internet. To me the server does not seem to be searching/scanning for SSI at all because when I view the webpage source the actual include statement displays in the source. For example, shows in the source. I use this exact same method, including .txt, on another Hawkhost hosted site and, when I view source, the actual content of that file shows, which makes sense because that means the server is "processing" the include statement before it sends it to my browser. But, again, it seems to me that the server is not "processing" it at all in my current situation because the actual include statement displays when I view the source of the pages in question instead of the content of the included file. I have tried including via: AND I have tried using <?php ("http://mysite.com/mystuff/pages/navigation-vertical.txt");?> Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.