Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/12/2013, 10:36
Avatar de mdromed
mdromed
 
Fecha de Ingreso: septiembre-2009
Mensajes: 389
Antigüedad: 14 años, 8 meses
Puntos: 8
Respuesta: Redireccion https en localhost

Me ha funcionado con esto:

Código PHP:
Ver original
  1. RewriteCond %{HTTPS} off
  2. # First rewrite to HTTPS:
  3. # Don't put www. here. If it is already there it will be included, if not
  4. # the subsequent rule will catch it.
  5. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  6. # Now, rewrite any request to the wrong domain to use www.
  7. RewriteCond %{HTTP_HOST} !^www\.
  8. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]