| Meta Tags & Titles [message #1021] |
Wed, 09 May 2007 03:57  |
lodp  Messages: 336 Registered: June 2006 |
Releaser |
|
|
I read up a little on search engine stuff, and it seems that while meta-tags aren't as relevant to search engines as they used to be, it still could help if pmbt generated meta-tags for torrents in the html head. Apart from that, the regular <title> - tag should contain the torrent name. People are more likely to click on that in Google, rather than just the site name.
I tried to generate these in header.php, but because of my near-illiteracy in PHP, I didn't get too far. It's probably the variables that don't work. This is what i did right after
in header.php
echo "<title>".$sitename." -- ".$torrent["name"]."</title>\n";
echo "<meta name=\"title\" content=\"".$torrent["name"]."\" />";
echo "<meta name=\"keywords\" content=\"Download ".$torrent["name"]."torrent\" />";
echo "<meta name=\"description\" content=\"Download ".$torrent["name"]."torrent\" BitTorrent File-Sharing/>";
Can you help me with that, joe?
I could also imaging that it would be usefull to let uploaders enter keywords for their uploads (like i have on my old site), and load those into the meta-tags.
[Updated on: Wed, 09 May 2007 04:05] Report message to a moderator
|
|
|
| Re: Meta Tags & Titles [message #1022 is a reply to message #1021] |
Wed, 09 May 2007 11:29   |
|
umm yea that well help the unwanted find you wont it?
would it not be better to use robet.txt
sample of robot.txt
###############################
#
# sample robots.txt file for this website
#
# addresses all robots by using wild card *
#
User-agent: *
# list folders robots are not allowed to index
Disallow: /tutorials/meta/
Disallow: /tutorials/images/
Disallow: /tutorials/assets/
Disallow: /tutorials/404redirect/
#
# list specific files robots are not allowed to index
#
Disallow: /tutorials/meta_tags.html
Disallow: /tutorials/custom_error_page.html
#
# End of robots.txt file
#
###############################
even the most popular search engene GOOGLE uses this.
[Updated on: Wed, 09 May 2007 13:04] Report message to a moderator
|
|
|
|
| Re: Meta Tags & Titles [message #1024 is a reply to message #1022] |
Wed, 09 May 2007 13:12   |
|
here are some tages for you to look at but you need to remember that you would need to add most of these to each page for them to work right.
Top Ten METAs for Search Engines
Suggested Robot META tags for use on ALL pages, in order of importance:
1. <META NAME="DESCRIPTION" CONTENT="place the page's description here">
This is what will be displayed on the search index page so write well and accurately!
2. <META NAME="KEYWORDS" CONTENT="place PAGE key words here, separated by commas">
Hint: Do not repeat words and keep the list short and specific to the page.
3. Choose ONLY ONE of the four Robot METAs below that apply to the page you place it on.
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
Function: Robot indexes the page AND follow all links (Default state if no robots meta is specified)
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
Function: Robot does not index the page nor follow links (Good for a links page, shopping cart, etc.)
<META NAME="ROBOTS" CONTENT="INDEX, NOFOLLOW">
Function: Robot indexes the page but does NOT follow links
<META NAME="ROBOTS" CONTENT="NOINDEX, FOLLOW">
Function: Robot does NOT index the page but follows all links (Good for a transition page)
4. <META NAME="REVISIT-AFTER" CONTENT="30 days">
Options: This can be anything you want in days. Be realistic, if your site is rather static, go with 30 days or longer. If you do a weekly calendar of events, 5 days is is a good starting point for that individual page. You don't want to have robots scarfing up your pages every day if they are not changing.
5. <META NAME="RATING" CONTENT="viewer rating goes here (choose one from options)">
Options: general, adult, mature, restricted, 14 years, safe for kids
6. <META NAME="COPYRIGHT" CONTENT="Copyright © 2001 your information here, all rights reserved">
7. <META NAME="AUTHOR" CONTENT="your name or company name here">
This and the contact address below provides a way for individuals to contact you.
8. <META NAME="CONTACT_ADDR"="the contact E-mail or physical address for you or your company"> This and the author tag above provides a way for individuals to contact you.
9. <META NAME="DISTRIBUTION" CONTENT="Global">
Options: Local (or a specific geographic area such as New England, Western Europe, or Japan). Use Global unless you want your pages restricted to a certain geographic area. Use Local for intranet (internal company) sites that you do NOT want indexed along with a NOINDEX NOFOLLOW robots META and a robots.txt file restricting robot access to the pages.
10. <META NAME="RESOURCE-TYPE" CONTENT="document">
This tells the robot that the page is an html document and should be walked.
|
|
|
|
|
|
|
|
|
|
|
|