Jump to content

Redirección HTTP --> HTTPS


SergioE

Recommended Posts

Buenas tardes, estoy intentado redireccionar con estas lineas del http al https, y cuando pongo este codigo al principio del .htaccess me sale esta URL:
 

URL

CODIGO
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://{REQUEST_URI} [L,R=301]

Que hago mal?

 

Saludos

Edited by SergioE (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Buenas tardes, estoy intentado redireccionar con estas lineas del http al https, y cuando pongo este codigo al principio del .htaccess me sale esta URL:

 

URL

CODIGO
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://{REQUEST_URI} [L,R=301]

Que hago mal?

 

Saludos

 

 

a mi me pasa igual, alguien tiene la solucion?

 

SergioE, pudiste solucionarlo?

Link to comment
Share on other sites

Si, funciona bien ese código. Ponlo justo después de esa línea 

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://{REQUEST_URI} [L,R=301]
Edited by SergioE (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...