Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/02/2012, 12:58
Avatar de xFantaSx
xFantaSx
 
Fecha de Ingreso: agosto-2011
Mensajes: 243
Antigüedad: 12 años, 8 meses
Puntos: 20
Redireccionamiento de .html a .php

Hola, resulta que he pasado mis páginas de .html a .php, pero pues no quiero perder los links que llevan a las páginas .html, por eso creo que es necesario hacer un redireccionamiento 301 (o algún otro) para que cuando alguien ingrese a alguna web mia que termine en .html pase a .php.

Intenté preguntar en el foro de SEO inicialmente en este link, pero no pudimos resolver el problema, entonces vengo a este lado del foro a ver si alguien más me puede ayudar.

Bueno, inicialmente tengo esta regla:
Código:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ganadinerorapido\.com$
RewriteRule (.*) http://www.ganadinerorapido.com/$1 [R=301,L]
Pero deseo agregar lo otro, lo que intentamos en el otro hilo fue poner estas reglas:
Código:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.ganadinerorapido.com$
RewriteRule ^(.*) http://www.ganadinerorapido.com/$1 [R=301,L]
RewriteRule ^(.*)\.html$ /$1.php [L, R=301]
pero aparece este error cuando intento acceder a cualqueir página:

Cita:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
__________________
Aprende cómo ganar dinero en internet...o ganar dinero rapido?