sgtaw
01-03-2009, 12:04 AM
Hi All,
Don't know if this is the right place.
I am creating a website that uses ssi to add in the navigation. This is so the updating of the navigation across the site is simple -- one file...
Then, I have pages that execute a CGI script to get search engine results.
The problem I am having is that I can't get the cgi execution AND the SSI execution to work together. Either one work and not the other or vice versa.
So here is the general code for a page....
--------------BEGIN---------------
<!--#include virtual="../search.cgi/?&keywords=test+code" -->
<?php include($_SERVER['DOCUMENT_ROOT']."/left-navigation.php"); ?>
------------END-----------------
"left-navigation.php" is just standard html.
The current .htaccess that I have is
---------------BEGIN-----------------
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]*)\.html$ /search.cgi/?keywords=$1
Options +execCGI +Includes
AddHandler cgi-script .cgi .pl
Order deny,allow
AddType text/html shtml html php
AddHandler server-parsed shtml html php
AddHandler application/x-httpd-php .php .html .htm .shtml
AddHandler application/x-httpd-php5 .php .html .htm .html .shtml
----------END----------
Using the above htaccess, the navigation shows up but the cgi is not executed.
Using
-------------------BEGIN-----------
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]*)\.html$ /search.cgi/?keywords=$1
Options +execCGI +Includes
Options +execCGI +Includes
AddHandler server-parsed .shtml .html
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php5 .php
-------END------------
The above allows my cgi to run and get results. However, now I have not navigation showingup!
Help!
Thanks,
Ed
Don't know if this is the right place.
I am creating a website that uses ssi to add in the navigation. This is so the updating of the navigation across the site is simple -- one file...
Then, I have pages that execute a CGI script to get search engine results.
The problem I am having is that I can't get the cgi execution AND the SSI execution to work together. Either one work and not the other or vice versa.
So here is the general code for a page....
--------------BEGIN---------------
<!--#include virtual="../search.cgi/?&keywords=test+code" -->
<?php include($_SERVER['DOCUMENT_ROOT']."/left-navigation.php"); ?>
------------END-----------------
"left-navigation.php" is just standard html.
The current .htaccess that I have is
---------------BEGIN-----------------
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]*)\.html$ /search.cgi/?keywords=$1
Options +execCGI +Includes
AddHandler cgi-script .cgi .pl
Order deny,allow
AddType text/html shtml html php
AddHandler server-parsed shtml html php
AddHandler application/x-httpd-php .php .html .htm .shtml
AddHandler application/x-httpd-php5 .php .html .htm .html .shtml
----------END----------
Using the above htaccess, the navigation shows up but the cgi is not executed.
Using
-------------------BEGIN-----------
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]*)\.html$ /search.cgi/?keywords=$1
Options +execCGI +Includes
Options +execCGI +Includes
AddHandler server-parsed .shtml .html
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php5 .php
-------END------------
The above allows my cgi to run and get results. However, now I have not navigation showingup!
Help!
Thanks,
Ed