Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/12/2008, 22:02
Avatar de luisvasquez
luisvasquez
 
Fecha de Ingreso: diciembre-2003
Ubicación: Venezuela
Mensajes: 879
Antigüedad: 20 años, 5 meses
Puntos: 6
PageRank y redireccionamiento 301

Amigos,

Estoy trabajando en optimizar mi web y me he encontrado un pequeño problema:

Tanto la url http://www.tuflete.com/default.asp como http://www.tuflete.com están indexadas en google y en realidad se trata de la misma página, por tanto existe una duplicación que pudiese estar afectando el posicionamiento.

La primera tiene un pagerank de 2/10 (hace poco tenía 3/10, pero de pronto bajó a 2) y la segunda de 1/10. Obviamente me interesa mantener el mayor pagerank.

He leido acerca del redireccionamiento 301 e incluso tengo un código en ASP que podría ayudarme, sin embargo tengo algunas dudas sobre el resultado que obtendré al implementarlo. Aca va:


Código:
<%
target_host = "www.tuflete.com" 
bredirect = false
the_host = Request.ServerVariables("HTTP_HOST")
the_path = Request.ServerVariables("PATH_INFO")
the_query = Request.ServerVariables("QUERY_STRING")

if the_host <> target_host then
    the_location = target_host
    bredirect = true
else
    the_location = the_host
end if

' Checking path
if (Right(the_path,10) = "/index.asp" AND the_query = "") then
    the_location = the_location & Left(the_path, Len(the_path)-9)
    bredirect = true
elseif (Right(the_path,12) = "/default.asp"  AND the_query = "") then
    the_location = the_location & Left (the_path, Len(the_path)-11)
    bredirect = true
else
    the_location = the_location & the_path & the_query
end if

' Redirect
if bredirect = true then
    Response.Status = "301 Moved Permanently"
    Response.AddHeader "Location", "http://"&the_location
    Response.End
end if
%>

Las dudas que tengo son las siguientes:

Una vez logrado el redireccionamiento de www.tuflete.com/default.asp a www.tuflete.com debo eliminar la primera del indice de google? ¿cómo lo hago?

Sinceramente me da temor puesto que se trata de la página principal de mi web y no quiero cometer un error que pueda causarme una penalización.

Saludos y gracias por su ayuda,
Luis Vásquez