Redirección de dominio (301) usando htaccess
2 Enero, 2008 por PedroHemos tenido que migrar de servidor Portal Nissan (www.portalnissan.com) y, mientras nuestro proveedor de dominios realizaba las modificaciones de DNS para reapuntar el hosting, hemos optado por redirigir todas las llamadas a un dominio auxiliar.
Para ello utilizamos esta sentencia en el .htaccess del servidor a migrar:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule (.*) http://www.bellatriubonsai.com/$1 [R=301,L]
</IfModule>
Donde http://www.bellatriubonsai.com/ es el dominio auxiliar que queráis utilizar.
Más información sobre el .htaccess, mod rewrite y la redirección 301, aquí: http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html aquí: http://www.isitebuild.com/301-redirect.htm y aquí: http://corz.org/serv/tricks/htaccess2.php
Octubre 8th, 2009 at 3:39 pm
Muchas gracias por la info.
La explicación está OK.
Yo Redireccioné un dominio completo y el pagerank y el nº de páginas indexadas por google es el que tenía en el dominio antiguo.
Saludos.
Agosto 19th, 2010 at 2:11 pm
Its always good to learn tips like you share for blog posting. As I just started posting comments for blog and facing problem of lots of rejections. I think your suggestion would be helpful for me. I will let you know if its work for me too.