Welcome to WebmasterWorld Guest from 184.108.40.206
For my site I include header.php on every page which as the meta tag in it, which of course makes it hard for me to change the meta tag for every page, So I have some questions:
1. Are they really necessary these days?
2. What would be the best way to get different meta tags on each page.
3. Will my PR get punished for having the same keywords on every page in the meta tags?
In regards to question 2, the only thing I've been able to think of currently is using a database for extracting the meta tags but I'm pretty sure that wont work how I have my site set up now since I'm mainly just using different PHP files.
Finally, I have a section where people make profiles, and they're profile link would be /profile.php?user=username, so if I make another column called keywords I could just use $req_user_info['keywords'] within the meta tag for those pages?
Thanks for any help :)
For my site I include header.php on every page which as the meta tag in it, which of course makes it hard for me to change the meta tag for every page
There are a number of ways you can keep it simple. Your specific file structure could be different, but you can do the following.
You mentioned you have a number of dynamic files. When you include the header, you can pass a value, in which case inside your header.php, you can either query the meta tags from the database, or from an array where you can read the info from.
If you provide more details, will get back to you with a response.
You can easily put meta-tags on each page, and then revise your header.inc.php file to just have the html content of the header only.
So you'd would have code like this
Of course, you could always write your header file to generate meta-tags for you also.