Hi,
I have index.php at the document root which GET the individuals pages on request using a SWITCH. I also have index.php at various folder levels to serve the files in those folders respectively. For example the folder has an index.php and it looks like this:
// INDEX.PHP which sits inside the folder ABOUT
<?php
$about = isset($_GET['d']) ? $_GET['d'] : 'about';
switch($about) {
/*----------------------- PAGES -----------------------------------*/
case 'profile':
$title = 'My Title';
$keyword = 'some keywords';
$description = 'A great description.';
break;
default:
$title = 'My Title';
$keyword = 'some keywords';
$description = 'A great description.';
break;
}
include($_SERVER['DOCUMENT_ROOT']. '/include/header.php');
include($_SERVER['DOCUMENT_ROOT'].'/about/' .$about.'.php');
include($_SERVER['DOCUMENT_ROOT']. "/include/footer.php");
?>
I have some URL rewritinting going on and that looks like this:
<Files "robots.txt">
Order Allow,Deny
Allow from all
</Files>
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^a(([^/]+/)*[^/.]+)$ /about/index.php?d=$1 [L]
RewriteRule ^(([^/]+/)*[^/.]+)$ index.php?p=$1 [L]
The problem I am having is when I select About us the page comes up no problem. But when I click on profile link within the about page its just displays the header and footer.
Any ideas?