So I'm attempting to convert this template that my client bought to use SSI code. Here is the code<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-spacere;overflow:auto'><br /><!-- #include virtual="../includes/header.ssi" --><br /></div><br /><br />This is not being parsed by the server at all. <br /><br />To see it "in action" (or lack thereof) go to <a href="http://www.arizonabeehive.com/test/html/index.shtml" target="_blank">http://www.arizonabeehive.com/test/html/index.shtml</a><br />For reference, this is what it should look like <a href="http://www.arizonabeehive.com/test/html/index.html" target="_blank">http://www.arizonabeehive.com/test/html/index.html</a><br />If you "view source" you can see that the code above is just being send to the client.<br /><br />I've read a few posts about how to do the same thing in PHP but IMO this should be working the way it is. My .htaccess file was blank when I started. I tried making all kinds of changes, nothing worked and I always had the same result.<br /><br />Any ideas?<!--content-->
Welcome to the forum ANFAM Jared <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><br /><br />Try adding the following to your .htaccess file<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->AddType text/html .shtml<br />AddHandler server-parsed .shtml<!--c2--></div><!--ec2--><!--content-->
Welcome to the forum, ANFAM Jared. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
<!--quoteo(post=218517:date=Jan 6 2008, 02:18 PM:name=TCH-Bruce)--><div class='quotetop'>QUOTE (TCH-Bruce @ Jan 6 2008, 02:18 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=218517"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Try adding the following to your .htaccess file<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->AddType text/html .shtml<br />AddHandler server-parsed .shtml<!--c2--></div><!--ec2--><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />I've tried adding this to the .htaccess file in the public_html root and in just the directory that contains the one shtml file I'm trying to run. So far no difference. I've also looked at the cPanel for the site, under Apache Handlers, it says "server-parsed .shtml" under the system handlers and shtml already exists as a mime type.<br /><br />Very strange. This should be working...<!--content-->
Ok I've fixed it. Appearently, it's very VERY picky about "whitespace".<br /><br />This works:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!--#include virtual="../header.ssi" --><!--c2--></div><!--ec2--><br /><br />This does NOT work<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!-- #include virtual="../header.ssi" --><!--c2--></div><!--ec2--><br /><br />Hopefully this helps someone else out later down the line.<!--content-->
Yes, whitespace is important. Glad you got it solved.<!--content-->
Welcome to the forum ANFAM Jared <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><br /><br />Try adding the following to your .htaccess file<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->AddType text/html .shtml<br />AddHandler server-parsed .shtml<!--c2--></div><!--ec2--><!--content-->
Welcome to the forum, ANFAM Jared. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
<!--quoteo(post=218517:date=Jan 6 2008, 02:18 PM:name=TCH-Bruce)--><div class='quotetop'>QUOTE (TCH-Bruce @ Jan 6 2008, 02:18 PM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=218517"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->Try adding the following to your .htaccess file<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->AddType text/html .shtml<br />AddHandler server-parsed .shtml<!--c2--></div><!--ec2--><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />I've tried adding this to the .htaccess file in the public_html root and in just the directory that contains the one shtml file I'm trying to run. So far no difference. I've also looked at the cPanel for the site, under Apache Handlers, it says "server-parsed .shtml" under the system handlers and shtml already exists as a mime type.<br /><br />Very strange. This should be working...<!--content-->
Ok I've fixed it. Appearently, it's very VERY picky about "whitespace".<br /><br />This works:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!--#include virtual="../header.ssi" --><!--c2--></div><!--ec2--><br /><br />This does NOT work<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!-- #include virtual="../header.ssi" --><!--c2--></div><!--ec2--><br /><br />Hopefully this helps someone else out later down the line.<!--content-->
Yes, whitespace is important. Glad you got it solved.<!--content-->