When a web browser or a search engine makes a request whose response contains a redirection status
code, they continue by browsing to the indicated location. The web browser will request the new URL and will
update the address bar to reflect the new location.
The default redirection status code is 302. This is important to know, because when doing search engine
optimization, you??™ll usually want to use 301 redirects. In regards to SEO, 301 redirects are preferable because
they (should) also transfer the link equityfrom the old URL to the new URL.
This means that if your old URL was ranking well for certain keywords, if 301 is used, then the new URL
will rank just like the old one, after search engines take note of the redirect. In practice, abuse of 301 isn??™t
desirable, because there??™s no guarantee that the link equity will be completely transferred??”and even if it
does, it may take a while until you??™ll rank well again for the desired keywords.
You can learn the more subtle details of redirection and HTTP status codes from Professional Search
Engine Optimization with PHP: A Developer??™s Guide to SEO,by Cristian Darie and Jaimie Sirovich (Wrox, 2007).
Our goal for the next exercise is to create a standard (???proper???) URL version for each page on
our site. When that page loads, we compare the known, standard URL of the page with the one
requested by the visitor.
Pages:
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315