Welcome to WebmasterWorld Guest from 23.20.18.183

Forum Moderators: goodroi

Message Too Old, No Replies

Metatags in header file

Meta information of every page controlled by a single header file

     
9:47 am on Oct 1, 2010 (gmt 0)

New User

5+ Year Member

joined:Jan 16, 2009
posts: 29
votes: 0


I'm managing a particular website where the Meta information is located in one header.php file.
This practically retards the possibility of targeting each page with a separate set of metatags.
One of my developers suggested to write all the metatags in the header.php file by using session value.
Is that a feasible option? Would the search engine spiders in this case read them as separate metatags for each page ?
If not, is there any other possible option to manage this ?

Just thought to mention, the site is designed in Cake php.
12:20 pm on Oct 1, 2010 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:10553
votes: 13


the metatag value should be based on the content of the url being requested rather than the current session.

the search engine spiders will read the metatags that are served with the document they are requesting with that url.
12:54 pm on Oct 1, 2010 (gmt 0)

Administrator from US 

WebmasterWorld Administrator goodroi is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:June 21, 2004
posts:3114
votes: 98


phranque is correct meta data should be based on page content & not session.

technically it is probably possible to use session value, but i wouldnt do it that way. i see alot of complications and many ways it can go wrong. i could see it worst case triggering the search engine spam filters and leading to a possible penalty.
2:54 pm on Oct 1, 2010 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 8, 2004
posts:563
votes: 1


Where is the header.php file usually located on a server?
11:41 am on Oct 8, 2010 (gmt 0)

New User

5+ Year Member

joined:Jan 16, 2009
posts: 29
votes: 0


Thanks for replying.
@Propools: In my case, this header.php file is located in the web root itself

@Goodroi, phranque: I understand...yes, it does show the spiders the metatags when that particular page is requested. I guess the Metatags would then have a bearing in the optimization process.
But is there any other way to do this ? I really wouldn't want to trigger the search engine spam filters. Sigh.