Jump to content

PHP includes work, except on top domain


dink87522

Recommended Posts

Sorry if this is a stupid question  :P

 

http://www.dinksoftware.com/fig/index.php looks as it should with the php includes working.

 

However if you go to http://www.dinksoftware.com/fig or http://www.dinksoftware.com/fig/ the php includes don't work for some reason.

 

index.php

<?php session_start(); ?>
<?php include('header.php'); ?>
<?php include('topMenu.php'); ?>
<?php include('sidenav.php'); ?>


<div id="content">
<h3>Introducing 'The Business Sim'!</h3>

<?php $errorMessage1 = $_SESSION['errorMessage1'];
echo("$errorMessage1 <p>");
$_SESSION['errorMessage1'] = ""; ?>

The Business Sim is an online, free to play educational game currently under development. <strong>The first round of gameplay will commence in Q1, 2011. </strong><br />
<p>Have gameplay ideas/suggestions or any other comments? Want to help mould the game? </p>

<br/>

<?php include('footer.php'); ?>
</div>
</body>
</html>

 

header.php part

(no other  includes or anything in this)

<a href="index.php"><img src="header.png" alt="The Business Sim" width="550" height="100" border="0"/></a>

 

How do I fix this? I want http://www.dinksoftware.com/fig and http://www.dinksoftware.com/fig/ to work like it does when you go/fig/index.php etc.

Link to comment
https://forums.phpfreaks.com/topic/220213-php-includes-work-except-on-top-domain/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.