PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Server Side Includes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Server Side Includes

    Hi

    I have tried to follow the support guidelines on adding SSI, but I cannot seem to get it to work. I have created a page called search-results.php that has the framework of my site with the following includes :

    <?php virtual("inc/topnav.php"); ?>
    <?php virtual("inc/navigation.php"); ?>

    I have then added the search script as follows

    <?php virtual("search.php"); ?>

    But the include files "topnav.php and "navigation.php, do not show, do I have to edit the search.php page to point to my new search page (search-results.php)

    Any help much appreciated!

    Thanks

  • #2
    If the include files don't show up the most obvious reason would be that the path is wrong. e.g. Maybe it should be
    <?php virtual("./inc/navigation.php"); ?>
    or
    <?php virtual("/inc/navigation.php"); ?>

    There should be no need to edit the search.php script if you follow the instructions. (And in fact this is exactly what we are trying to avoid)

    Comment

    Working...
    X