Webmaster Forums 101 - Free Help and Discussions
 
 
 

MEMBER REWARDS - Earn free advertising by participating in these forums! Click here for details.

Welcome to Webmaster Forums 101!

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th November 2005, 05:21 AM   #1

Username: blyzard
Rank: WF101 Newbie
Join Date: Nov 2005
Posts: 4
Points: 0.00
Arrow coding keeping SEO in mind.

Hi!

I am very new to PHP, Mysql so bear with me and any help will be appreciated.

I was wondering if it is a good idea (for better placement to google and other search engine) to make a header.php and footer.php and then call it with every other php pages I generate for my website including index.php?
This header.php contains the keywords and metatags etc etc needed for the search engine.

Thanks again.
blyzard is offline   Reply With Quote
Old 4th November 2005, 08:51 AM   #2
Mr. Tech's Avatar

Username: Mr. Tech
Rank: Problem Solver
Join Date: Dec 2004
Location: Gold Coast, Australia
Posts: 2,166
Points: 1,025.61
Send a message via MSN to Mr. Tech
Default

Welcome to the forums!

Yes, you can do that. That is a good way to do it.

The only thing that would probably need to be changed on every page would be the description meta tag. I've seen Google use the meta description in its search results so it is worth having. Because every page is different, it is good to have a different description for each page.

Here is a way to make the meta description different on every page.

header.php
Code:
<html> <head> <title><?php echo $title; ?></title> <meta name="description" content="<?php echo $description; ?>"> <meta name="keywords" content="<?php echo $keywords; ?>"> </head> etc. etc.

index.php
Code:
<?php $title = "My website!" $description = "The unique description goes here."; $keywords = "The unique keywords go here"; include("header.php"); ?> ect. etc.

Hope that helps
__________________
Please read the Forum Rules

Get rewarded for posting
- free advertising!

.::. [ Webmaster Resources ] .::. [ Web Design ] .::. [ Developer Tutorials ] .::.
Mr. Tech is offline   Reply With Quote
Old 4th November 2005, 11:57 AM   #3

Username: blyzard
Rank: WF101 Newbie
Join Date: Nov 2005
Posts: 4
Points: 0.00
Default

Thanks for the prompt reply.
blyzard is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Login
User Name
Password


Featured Members


Featured Links


Useful Resources
Webmaster Resources
Developers Tools
Developer Tutorials


Partners

All times are GMT +10. The time now is 05:54 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.3.2
 
 
WEBMASTER FORUMS 101
ARCHIVE
CONTACT US
TOP
   
© Webmaster Forums 101 2005. All Rights Reserved.
Design by: vBCore