Jump to content

Recommended Posts

Posted (edited)

Hello,

 

I had covered this issue on these forums about 6 monts ago. After a long vacation from web publishing, I went back to the post I made previously to address my SSI problems. After scouring the topic over and over, I just cannot get my SSI to function. I was sure whether I should continue the original post so I decided to start fresh and see if I can finally get this to work.

 

Currently my problem is this: i am using Ikonboard for my web forums and I want to use the News feature, but for the life of me I cant get it to display. I am using dreamweaver for page creation and have tried doing this with an html page as well as a fresh php page to no avail. I insert <!--#include virtual="/exocet/ikonboard/iB_html/non-cgi/ssi/newsdata.txt" --> (exocet is a subdomain) and the tables show up in design view within Dreamweaver. I then upload the file as index.html and when I try to view it it shows up as blank. I have used the same procedure after creating a new php page and uploaded that as index.php with no results as well.

 

I have checked my .htaccess files and in each directory this is what they read:

 

AddHandler application/x-httpd-php .htm .html .shtml

Options Indexes FollowSymLinks Includes

AddType application/x-httpd-CGI .CGI

AddType text/x-server-parsed-html .html

AddType text/x-server-parsed-html .shtml

 

I added the line AddHandler application/x-httpd-php .htm .html .shtml to the top line of my .htaccess file as directed in my previous post and I still cant get the darn thing to work.

 

I had a full head of hair when I first attempted to accomplish this task and now I fear I may have to run out and buy some Rogaine if this problem persists. I was hoping that some kind soul could walk me thru this to finally get my news info on my homepage.

 

Thanks for your patience.

 

Edit:

 

Concerning my .htaccess file, I found these instructions from the ikonboard forums, but when I tried that I got all kinds of errors and couldnt even access my index page:

 

Place this where you want the news to appear on your page

Code Sample

<!--#include virtual="http://exocet.digitalpalatte.com/ikonboard/iB_html/non-cgi/ssi/newsdata.txt" -->

 

"The HTML file that must be renamed to end with SHTML and you need to modify your .htaccess file in your root dir as well. This is mine, for example:

 

Code Sample

AddType text/x-server-parsed-html .shtml

AddType text/html .shtml

AddHandler server-parsed .shtml

DirectoryIndex index.shtml index.html "

Edited by Xantith
Posted

With the .htaccess file as you currently have it, you're trying to get the server to parse an .html page twice - once for PHP and once for SSI, and I believe the server will only parse a file once. From the Apache server documentation:

Care should be taken when a file with multiple extensions gets associated with both a MIME-type and a handler. This will usually result in the request being by the module associated with the handler.

Since .html files are associated with PHP as the handler (SSI is associated as a MIME-type), PHP will get to parse the .html page and it will not be parsed for SSI.

 

If a page is being parsed by PHP, you don't really need to use SSI as PHP has equivalent commands built into it. For example, instead of this SSI command:

><!--#include virtual="http://exocet.digitalpalatte.com/ikonboard/iB_html/non-cgi/ssi/newsdata.txt" -->

...you can use this PHP command instead:

><?php include 'http://exocet.digitalpalatte.com/ikonboard/iB_html/non-cgi/ssi/newsdata.txt'; ?>

Hope this helps...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...