|
Mar
22
1
|
SEO Book |
|||||
I've been asked to write an SEO book from a technological point of view. As part of the process, I will post some of my ideas on this blog. The title is TBD, but it will be a handbook for all the common questions and concerns that a search engine marketer will have addressed entirely from a programming angle. A stress will be placed on showing examples in PHP, and, perhaps, a later edition in ASP. As a first topic, I will discuss the topic of search engine sitemaps. I am not referring to the general concept of a sitemap, though the origin of the idea comes from the obvious advantages that were noticed when people created a page that functioned as an enumeration of all the URLs on a site. I will show a script that creates both files for a dynamic site with flexibility. As a side-note. Using a sitemap will probably not get you ranked any higher in the SERPs with any certainty. However, what it definately does do is get your site indexed much quicker. In my experience, Google hits your sitemap a few times a day. This can be an edge in terms of getting into the SERPs faster. First, we need some simple rewrites in our site's root directory: <? require_once('./Sitemap.php'); $s = new Sitemap(); $categories = Categories::get(); $pages = Pages::get(); $s->addItem('http://www.somedomain.com/Somepage.html', '', 'daily'); ?> And here is the code for the Sitemap class: <? class Sitemap function Sitemap($items = array()) ?> Related posts: RSS Made Even Simpler Syndication isn't only for blogs; it can be used for... Yahoo API Code <?php /* sample usage: $tree = new xmlTreeParser('sample.xml'); echo '<pre>'; print_r($tree->getTree()); */ class xmlTreeParser { var $_parser; var $_xmldata;... Code for HTML Auditing <? // +———————————————————————-+ // | HTMLParser | // | Simple HTML Parsing Library | // | Based on Jose Solorzano's Library; his notice is below. | // +———————————————————————-+ // | Portions Copyright (c) 2004-2005 Jaimie Sirovich | // +———————————————————————-+ // | This program is free software; you can redistribute it and/or |...
| ||||||
"Only One Wise Comment Banged Out Somewhere On The Internet ..."
Excellent article. Nice explanation of codes for url rewrite.
|


















