- Shopping Bag ( 0 items )
Maybe you’re a great programmer or IT professional, but marketing isn’t your thing. Or perhaps you’re a tech-savvy search engine marketer who wants a peek under the hood of a search engine optimized web site. Search engine marketing is a field where technology and marketing are both critical and interdependent, because small changes in the implementation of a web site can make you or break you in search engine rankings. Furthermore, the fusion of technology and marketing ...
Maybe you’re a great programmer or IT professional, but marketing isn’t your thing. Or perhaps you’re a tech-savvy search engine marketer who wants a peek under the hood of a search engine optimized web site. Search engine marketing is a field where technology and marketing are both critical and interdependent, because small changes in the implementation of a web site can make you or break you in search engine rankings. Furthermore, the fusion of technology and marketing know-how can create web site features that attract more visitors.
The mission of this book is to help web developers create web sites that rank well with the major search engines, and to teach search engine marketers how to use technology to their advantage. We assert that neither marketing nor IT can exist in a vacuum, and it is essential that they not see themselves as opposing forces in an organization. They must work together. This book aims to educate both sides in that regard.
Googling for information on the World Wide Web is such a common activity these days that it is hard to imagine that just a few years ago this verb did not even exist. Search engines are now an integral part of our lifestyle, but this was not always the case. Historically, systems for finding information were driven by data organization and classification performed by humans. Such systems are not entirely obsolete - libraries still keep their books ordered by categories, author names, and so forth. Yahoo! itself started as a manually maintained directory of web sites, organized into categories. Those were the good old days.
Today, the data of the World Wide Web is enormous and rapidly changing; it cannot be confined in the rigid structure of the library. The format of the information is extremely varied, and the individual bits of data - coming from blogs, articles, web services of all kinds, picture galleries, and so on - form an almostinfinitely complex virtual organism. In this environment, making information findable necessitates something more than the traditional structures of data organization or classification.
Introducing the ad-hoc query and the modern search engine. This functionality reduces the aforementioned need for organization and classification; and since its inception, it has been become quite pervasive. Google's popular email service, GMail, features its searching capability that permits a user to find emails that contain a particular set of keywords. Microsoft Windows Vista now integrates an instant search feature as part of the operating system, helping you quickly find information within any email, Word document, or database on your hard drive from the Start menu regardless of the underlying file format. But, by far, the most popular use of this functionality is in the World Wide Web search engine.
These search engines are the exponents of the explosive growth of the Internet, and an entire industry has grown around their huge popularity. Each visit to a search engine potentially generates business for a particular vendor. Looking at Figure 1-1 it is easy to figure out where people in Manhattan are likely to order pizza online. Furthermore, the traffic resulting from non-sponsored, or organic, search results costs nothing to the vendor. These are highlighted in Figure 1-1.
The less obvious effect of the search engine explosion phenomenon is that web developers are now directly involved in the search engine marketing process. To rank well in these organic results, it may not be enough to "write relevant content," as your typical search engine marketing tutorial drones. Rather, the web application developer must work together with the marketing team, and he or she must build a web site fully aware that certain features or technologies may interfere with a search engine marketing campaign. An improperly designed web site can interfere with a search engine's need to periodically navigate and index the information contained therein. In the worst case, the search engine may not be able to index the content at all.
So, ironically, while users are becoming less interested in understanding the structure of data on the Internet, the structure of a web site is becoming an increasingly important facet in search engine marketing! This structure - the architecture of a web site - is the primary focus of this book.
We hope that this brief introduction whets your appetite! The remainder of this chapter tells you what to expect from this book. You will also configure your development machine to ensure you won't have any problems following the technical exercises in the later chapters.
Who Are You?
Maybe you're a great programmer or IT professional, but marketing isn't your thing. Or perhaps you're a tech-savvy search engine marketer who wants a peek under the hood of a search engine optimized web site. Search engine marketing is a field where technology and marketing are both critical and interdependent, because small changes in the implementation of a web site can make you or break you in search engine rankings. Furthermore, the fusion of technology and marketing know-how can create web site features that attract more visitors.
The raison d'être of this book is to help web developers create web sites that rank well with the major search engines, and to teach search engine marketers how to use technology to their advantage. We assert that neither marketing nor IT can exist in a vacuum, and it is essential that they not see themselves as opposing forces in an organization. They must work together. This book aims to educate both sides in that regard.
What Do You Need to Learn?
As with anything in the technology-related industry, one must constantly learn and research to keep apprised of the latest news and trends. How exhausting! Fortunately, there are fundamental truths with regard to search engine optimization that are both easy to understand and probably won't change in time significantly - so a solid foundation that you build now will likely stand the test of time.
We remember the days when search engine optimization was a black art of analyzing and improving on-page factors. Search engine marketers were obsessed over keyword density and which HTML tags to use. Many went so far as to recommend optimizing content for different search engines individually, thusly creating different pages with similar content optimized with different densities and tags. Today, that would create a problem called duplicate content.
The current struggle is creating a site with interactive content and navigation with a minimal amount of duplicate content, with URLs that do not confuse web spiders, and a tidy internal linking structure. There is a thread on SearchEngineWatch (http://www.searchenginewatch.com) where someone asked which skill everyone reading would like to hone. Almost all of them enumerated programming as one of the skills (http://forums.searchenginewatch.com/showthread.php?t=11945). This does not surprise us. Having an understanding of both programming and search engine marketing will serve one well in the pursuit of success on the Internet.
When people ask us where we'd suggest spending money in an SEO plan, we always recommend making sure that one is starting with a sound basis. If your web site has architectural problems, it's tantamount to trumpeting your marketing message atop a house of cards. Professional Search Engine Optimization with PHP: A Developer's Guide to SEO aims to illustrate how to build a solid foundation.
To get the most out of this journey, you should be familiar with a bit of programming (PHP, preferably). You can also get quite a bit out this book by only reading the explanations. And another strategy to reading this book is to do just that - then hand this book to the web developer with a list of concerns and directives in order to ensure the resulting product is search engine optimized. In that case, don't get bogged down in the exercises - just skim them.
We cover a quick introduction to SEO in Chapter 2, which should nail down the foundations of that subject. However, PHP and MySQL are vast subjects; and this book cannot afford to also be a PHP and MySQL tutorial. The code samples are explained step by step, but if you have never written a line of PHP or SQL before, and want to follow the examples in depth, you should also consider reading a PHP and MySQL tutorial book, such as the following:
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide, 2nd edition (Larry Ulman, Peachpit Press, 2005)
Build Your Own Database Driven Website Using PHP & MySQL, 3rd Edition (Kevin Yank, Sitepoint, 2005)
Teach Yourself PHP in 10 Minutes (Chris Newman, Sams, 2005)
SEO and the Site Architecture
A web site's architecture is what grounds all future search engine marketing efforts. The content rests on top of it, as shown in Figure 1-2. An optimal web site architecture facilitates a search engine in traversing and understanding the site. Therefore, creating a web site with a search engine optimized architecture is a major contributing factor in achieving and maintaining high search engine rankings.
Architecture should also be considered throughout a web site's lifetime by the web site developer, alongside other factors such as aesthetics and usability. If a new feature does not permit a search engine to access the content, hinders it, or confuses it, the effects of good content may be reduced substantially. For example, a web site that uses Flash or AJAX technologies inappropriately may obscure the majority of its content from a search engine.
We do not cover copywriting concepts in detail, or provide much coaching as to how to create persuasive page titles. These are also very important topics, which are masterfully covered by Bryan and Jeffrey Eisenberg in Persuasive Online Copywriting: How to Take Your Words to the Bank (Wizard Academy Press, 2002), and by John Caples and Fred E. Hahn in Tested Advertising Methods, 5th edition (Prentice Hall, 1998). Shari Thurow also has an excellent section on creating effective titles in her book, Search Engine Visibility (New Riders Press, 2002). Writing copy and titles that rank well are obviously not successful if they do not convert or result in click-throughs, respectively. We do give some pointers, though, to get you started.
We also do not discuss concepts related to search engine optimization such as usability and user psychology in depth, though they are strong themes throughout the book.
Optimizing a site's architecture frequently involves tinkering with variables that also affect usability and the overall user perception of your site. When we encounter such situations, we alert you to why these certain choices were made. Chapter 5, "Duplicate Content," highlights a typical problem with breadcrumbs and presents some potential solutions. Sometimes we find that SEO enhancements run counter to usability. Likewise, not all designs that are user friendly are search engine friendly. Either way, a compromise must be struck to satisfy both kinds of visitors - users and search engines.
SEO Cannot Be an Afterthought
One common misconception is that search engine optimization efforts can be made after a web site is launched. This is frequently incorrect. Whenever possible, a web site can and should be designed to be search engine friendly as a fundamental concern.
Unfortunately, when a preexisting web site is designed in a way that poses problems for search engines, search engine optimization can become a much larger task. If a web site has to be redesigned, or partially redesigned, the migration process frequently necessitates special technical considerations. For example, old URLs must be properly redirected to new ones with similar relevant content.
The majority of this book documents best practices for design from scratch as well as how to mitigate redesign problems and concerns. The rest is dedicated to discretionary enhancements.
Communicating Architectural Decisions
The aforementioned scenario regarding URL migration is a perfect example of how the technical team and marketing team must communicate. The programmer must be instructed to add the proper redirects to the web application. Otherwise existing search rankings may be hopelessly lost forever. Marketers must know that such measures must be taken in the first place.
In a world where organic rankings contribute to the bottom line, a one-line redirect command in a web server configuration file may be much more important than one may think. This particular topic, URL migration, is discussed in Chapter 4.
Architectural Minutiae Can Make or Break You
The search engine spider is "the third browser." Many organizations will painstakingly test the efficacy and usability of a design in Internet Explorer and Firefox with dedicated QA teams. Unfortunately, many fall short by neglecting to design and test for the spider. Perhaps this is because you have to design in the abstract for the spider; we don't have a Google spider at our disposal after all; and we can't interview it afterward with regard to what it thought of our "usability." However, that does not make its assessment any less important.
The Spider Simulator tool located at http://www.seochat.com/seo-tools/spider-simulator/ shows you the contents of a web page from the perspective of a hypothetical search engine. The tool is very simplistic, but if you're new to SEO, using it can be an enlightening experience.
Preparing Your Playground
This book contains many exercises, and all of them assume that you've prepared your environment as explained in the next few pages. If you're a PHP and MySQL veteran, here's the quick list of software requirements. If you have these, you can skip to the end of the chapter, where you're instructed to create a MySQL database for the few exercises in this book that use it.
Apache 2 or newer, with the mod_rewrite module
PHP 4.1 or newer
Your PHP installation should have these modules:
php_mysql (necessary for the chapters that work with MySQL)
php_gd2 (necessary for exercises in Chapter 5 and Chapter 10)
php_curl (necessary for exercises in Chapter 11)
If you already have PHP but you aren't sure which modules you have installed, view your php.ini configuration file. On a default Windows installation, this file is located in the Windows folder; if you install PHP through XAMPP as shown in the exercise that follows, the path is \Program Files\xampp\ apache\bin. To enable a module, remove the leading ";" from the extension=module_name.dllline, and restart Apache.
After installing the necessary software, you'll create a virtual host named seophp.example.com, which will point to a folder on your machine, which will be your working folder for this book. All exercises you build in this book will be accessible on your machine through http://seophp.example.com.
Lastly, you'll prepare a MySQL database named seophp, which will be required for a few of the exercises in this book. Creating the database isn't a priority for now, so you can leave this task for when you'll actually need it for an exercise.
XAMPP is a package created by Apache Friends (http://www.apachefriends.org), which includes Apache, PHP, MySQL, and many other goodies. If you don't have these already installed on your machine, the easiest way to have them running is to install XAMPP.
Excerpted from Professional Search Engine Optimization with PHP by Christian Darie Jaimie Sirovich Copyright © 2007 by John Wiley & Sons, Ltd. Excerpted by permission.
All rights reserved. No part of this excerpt may be reproduced or reprinted without permission in writing from the publisher.
Excerpts are provided by Dial-A-Book Inc. solely for the personal use of visitors to this web site.
Chapter 1: You: Programmer and Search Engine Marketer.
Chapter 2: A Primer in Basic SEO.
Chapter 3: Provocative SE-Friendly URLs.
Chapter 4: Content Relocation and HTTP Status Codes.
Chapter 5: Duplicate Content.
Chapter 7: Web Feeds and Social Bookmarking.
Chapter 8: Black Hat SEO.
Chapter 9: Sitemaps.
Chapter 10: Link Bait.
Chapter 11: Cloaking, Geo-Targeting, and IP Delivery.
Chapter 12: Foreign Language SEO.
Chapter 13: Coping with Technical Issues.
Chapter 14: Case Study: Building an E-Commerce Store.
Chapter 15: Site Clinic: So You Have a Web Site?
Chapter 16: WordPress: Creating an SE-Friendly Blog.
Appendix A: Simple Regular Expressions.