Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 2

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 3

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 4

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 5

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 6

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 7

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 8

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 9

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 10

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 11

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/inicio.phtml on line 12

Warning: Cannot modify header information - headers already sent by (output started at /home/webjoa/public_html/lib/inicio.phtml:2) in /home/webjoa/public_html/lib/jpcache/jpcache-main.php on line 170

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/webjoa/public_html/ads/config.inc.php on line 176
PHPJoaquin's Weblog. WebEstilo.
image

Deprecated: Function eregi() is deprecated in /home/webjoa/public_html/lib/clspagina.phtml on line 48
Inicio » Weblog » Joaquin's Weblog

Método para que Google no indexe páginas de error

08.02.2008
Categoría: — Joaquin @

A veces puede pasar que que hay un error en tu página, pero es un error momentáneo, ya sea porque has reiniciado el servidor o porque hay una sobre carga.

En estos casos es muy desagradable que el robot de Google pase por tu página en ese momneto y te indexe el error, de manera que tu información real no se almacena en el índice de Google perdiendo una cantidad importante de visitas.

Para evitar esto, puede personalizar la página de error para enviar una cabera “503  Servicio momentanemente no disponible”. Hacer esto esmuy sencillo, por ejemplo, para PHP se hace de la siguiente forma:

<?php
ob_start();
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 3600');
header('X-Powered-By:');
?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Temporarily Unavailable</title>
</head><body>
<h1>Service Temporarily Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
</body></html>

Os dejo el enlace original en donde se explica en profundidad el envío de la cabecera 503.






WebEstilo.com - Introduzca su e-mail y conozca las novedades. No hacemos Spam.
Enlaces
Viagra Free Pills Sample
Cocina Facil IngenieroSoftware.com  
Google
  Web WebEstilo.com   
Última modificación:16 de Agosto de 2006. Spain - España.
© 1998-2004 por Joaquin Gracia. Todos los derechos reservados.