Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/05/2016, 17:23
Avatar de berkeleyPunk
berkeleyPunk
 
Fecha de Ingreso: febrero-2013
Ubicación: México :C
Mensajes: 565
Antigüedad: 11 años, 2 meses
Puntos: 22
Pregunta Redireccionar de https a http con .htaccess

Hola a todos!

Estoy trabajando en el siguiente subdominio: http://misubdominio.midominio.com

De modo que si entro a https://misubdominio.midominio.com (https), el navegador me dice: This site can’t be reached.

Entonces, necesito redireccionar de https a http. Googlé, y hay mil sitios que te dicen cómo hacerlo, pero nada me funciona, . ¿Tendrá que ver con que yo trabaje en un subdominio?

Utilizo estas líneas en el .htaccess:
Código htaccess:
Ver original
  1. RewriteEngine On
  2. RewriteCond %{HTTPS} off
  3. RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}

Respecto de la tercera línea, la he cambiado alternativamente por cada una de estas opciones, y nada sirve:
Código htaccess:
Ver original
  1. RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  2. RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
  3. RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI}
  4. RewriteRule ^(.*)$ http://misubdominio.midominio.com/$1 [NC,L,R]