homepage Welcome to WebmasterWorld Guest from 174.129.103.100
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Marketing and Biz Dev / General Search Engine Marketing Issues
Forum Library, Charter, Moderators: mademetop

General Search Engine Marketing Issues Forum

    
php header and footer configurations
php header and footer, search engine promotion
layer8




msg:250576
 3:17 am on Jan 17, 2005 (gmt 0)

Hi,

Im thinking of using one header.php and one footer.php for my website to ease mamangement and create a consistant template throughout my website.

Anyone know if this is bad for search engine promotion?

 

chrisgarrett




msg:250577
 11:16 am on Jan 17, 2005 (gmt 0)

I do this and variations all the time. It is standard practice. I presume you are worried about duplicate content penalties? I wouldn't worry so much, just make sure you are not loading the page down with too much unnecessaryness :O) Look at this site, webmasterworld, and how well it does in the serps. Standard template and no penalties ..

encyclo




msg:250578
 1:30 pm on Jan 17, 2005 (gmt 0)

There's no problem with this - but make sure that your
<title> is different for each page, as well as the meta description and keywords if you use them. You can use a variable at the top of each page to echo the values you want in the right place, for example:

<?php $pagetitle="page title";
$keywords="list of meta keywords";
$description="your meta description here";
include($_SERVER["DOCUMENT_ROOT"]."/includes/header.inc.php");?>

<p>your page content here...</p>

<?php include($_SERVER["DOCUMENT_ROOT"]."/includes/footer.inc.php");?>

And in your header.inc.php:

<?php header('Content-Type: text/html; charset=ISO-8859-1');
header('Content-Language: en');?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>

<title>WidgetsCo<?php if (isset($pagetitle)) {echo " - ".$pagetitle;}?></title>

<?php if (isset($description)) {
echo "<meta name=\"description\" content=\"".$description"\">";}?>

<?php if (isset($keywords)) {
echo "<meta name=\"keywords\" content=\"".$keywords"\">";}?>

<style type="text/css" media="all">@import "styles.css";</style>

</head>
<body>

chrisgarrett




msg:250579
 5:42 pm on Jan 17, 2005 (gmt 0)

Yup, I usually draw all the content out of a database and roll a simple cms to populate the data.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Marketing and Biz Dev / General Search Engine Marketing Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved