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

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

by Jaimie Sirovich, Cristian Darie
April 2007
Intermediate to advanced
382 pages
9h 9m
English
Wrox
Content preview from Professional Search Engine Optimization with PHP: A Developer's Guide to SEO

Chapter 4. Content Relocation and HTTP Status Codes

One of the perks of PHP is that it abstracts away many low-level implementation details from the web developer. It does such a great job, in fact, that you can typically build complex web applications without understanding much at all about the protocol web servers used to speak to the world, HTTP (Hyper Text Transport Protocol).

Though most of the time this ignorance is bliss, it is sometimes not so with regard to search engine optimization. Using the protocol improperly has the potential to wreak havoc for search engine rankings. On the other hand, knowing how to use it effectively can be of great help to the very same end.

HTTP status codes are a small but critical part of this protocol. They provide information regarding the state of an HTTP request. You can use them, for example, to indicate that the requested information should be retrieved from a different location henceforth. In modern search engines, doing so also may also result in a transference of link equity to that new location. This example alone highlights the importance of knowing how to use these codes.

In this chapter you will:

  • Learn about the HTTP status codes that are pertinent to the search engine marketer.

  • Understand how to use the redirection status codes properly, how to signal deleted pages, and how to avoid indexing errors.

  • Learn how to implement redirection using PHP and mod_rewrite.

  • Follow step-by-step exercises to implement automatic URL correction and canonicalization. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Professional Search Engine Optimization with ASP.NET: A Developer's Guide to SEO

Professional Search Engine Optimization with ASP.NET: A Developer's Guide to SEO

Cristian Darie, Jaimie Sirovich

Publisher Resources

ISBN: 9780470100929Purchase book