hey guys i have this big problem
i have a site www.mrjoka.com
and i use the index.php?id=page ID system
which means that i use the same footer and header for all of the pages
which means that all the meta tags and titles are thesame
and this is the big problem because i order to get the best results from search englines i need to b able to change my title and meta tags for every page
now i did saw sites that do change the titles and such but i myself can`t seem to b able to do so
please help
here is my script just to give u a clue
<?
$FileDir = "pages"; // The default map is: pages. If you change the directory with the files in it, then change it here too!
$Wrong_ID = "This page doesn't exist! <br /><br />"; // Message to be displayed if a wrong page is called!
$Start_page = "home.php"; //This page will open the first page and also works as a default page (default = home.html) when an ID could not be found!
/**Please do not edit anything from this point on.
* --------------------------------------------**/
if(!is_dir($FileDir))die("File directory is invalid, please specify it in the index.php file!!");
//Header including!!
if(file_exists("header.php"))
{
include("header.php");
}
else
{
echo "<li><b>header.php was not found. Make sure it resides in the root directory of this website.<br /><br /></li></b>";
}
//End header including
if(isset($_GET['id']))
{
//Assign the id to an easy to use variable and make sure it isn't an invalid id
$id = trim($_GET['id']);
$id = str_replace("\\", "/", $id);
if(file_exists($FileDir."/".$id.".html"))
{
$id = $id.".html";
}
elseif(file_exists($FileDir."/".$id.".htm"))
{
$id = $id.".htm";
}
elseif(file_exists($FileDir."/".$id.".inc"))
{
$id = $id.".inc";
}
elseif(file_exists($FileDir."/".$id.".php"))
{
$id = $id.".php";
}
else
{
echo $Wrong_ID;
$id = $Start_page;
}
}
else
{
$id = $Start_page;
}
//Body including
if($id != $Start_page)
{
include($FileDir."/".$id);
}
else
{
if(file_exists($FileDir."/".$id))
{
include($FileDir."/".$id);
}
else
{
echo "<li><b>$Start_page was not found, please make sure this file exists because it works as a default page! <br /><br /></li></b>";
}
}
//End body including
//Footer including!!
if(file_exists("footer.php"))
{
include("footer.php");
}
else
{
echo "<li><b>footer.php was not found. Make sure it resides in the root directory of this website.<br /><br /></li></b>";
}
//End footer including
?>