Jump to content

HTTP to HTTPS in homepage not working (multistore)


juanmlg

Recommended Posts

Hello, I am using prestashop 1.5.3 (I know its a bit old, I hope to update it soon), I have installed a SSL certificate to run in homepage and in forms pages (I am running multistore and I only want to use SSL in one store "mystore1" )

So the certificate is working well, I can see the locks if I browse to https://www.mystore1.com and all load ok, but the problem is that there is no redirection to https when I browse to www.mystore1.com or mystore1.com. I have mod_rewrite ON and have regenerate the htaccess a few times.

 

This is my htaccess :

 

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.mystore1.com$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

RewriteCond %{HTTP_HOST} ^mystore2.es$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

 

Please, can you help me to redirect www.mystore1.com and mystore1.com to https://www.mystore1.com

 

Thanks so much!!

Link to comment
Share on other sites

  • 1 month later...

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...