Professional Search Engine Optimization with PHP: A Developer's Guide to SEO

Overview

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 ...

See more details below
Other sellers (Paperback)
  • All (24) from $1.99   
  • New (7) from $7.96   
  • Used (17) from $1.99   
Sending request ...

Overview

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.

Read More Show Less

Product Details

  • ISBN-13: 9780470100929
  • Publisher: Wiley
  • Publication date: 2/27/2007
  • Series: Programmer to Programmer Series
  • Edition number: 1
  • Pages: 384
  • Product dimensions: 7.40 (w) x 9.20 (h) x 0.80 (d)

Meet the Author

Jaimie Sirovich is a search engine marketing consultant. He works with his clients to build them powerful online presences. Officially Jaimie is a computer programmer, but he claims to enjoy marketing much more. He graduated from Stevens Institute of Technology with a BS in Computer Science. He worked under Barry Schwartz at RustyBrick, Inc., as lead programmer on e-commerce projects until 2005. At present, Jaimie consults for several organizations and administrates the popular search engine marketing blog, SEOEgghead.com.

Cristian Darie is a software engineer with experience in a wide range of modern technologies, and the author of numerous books and tutorials on AJAX, ASP.NET, PHP, SQL, and related areas. Cristian currently lives in Bucharest, Romania, studying distributed application architectures for his PhD. He’s getting involved with various commercial and research projects, and when not planning to buy Google, he enjoys his bit of social life. If you want to say “Hi,” you can reach Cristian through his personal web site at http://www.cristiandarie.ro.

Read More Show Less

Read an Excerpt

Professional Search Engine Optimization with PHP

A Developer's Guide to SEO
By Christian Darie Jaimie Sirovich

John Wiley & Sons

Copyright © 2007 John Wiley & Sons, Ltd
All right reserved.

ISBN: 978-0-470-10092-9


Chapter One

You: Programmer and Search Engine Marketer

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

So you now understand that small mistakes in implementation can be quite insidious. Another common example would be the use of JavaScript-based navigation, and failing to provide an HTML-based alternative. Spiders would be lost, because they, for the most part, do not interpret JavaScript.

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

MySQL

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.

Installing XAMPP

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.

(Continues...)



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.

Read More Show Less

Table of Contents

Acknowledgments.

Introduction.

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 6: SE-Friendly HTML and JavaScript.

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.

Glossary.

Index.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)