Jump to content

Archived

This topic is now archived and is closed to further replies.

nielot

ssl on shop

Recommended Posts

Hi guys

 

I have problem i cant update how many product i want buy in my shop.

I think it's a problem in htaccess. When i delete it its workin. If i update 4 this

#Przekierowanie na https
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://superlakiery.pl
 
its not workin correctly. What its bad in this?

Share this post


Link to post
Share on other sites

What that code says to do is if it's HTTP (port 80), send the user to the home page (superlakiery.pl) under HTTPS. Try

RewriteRule ^(.*)$ https://superlakiery.pl/$1

to keep the rest of the URL and only change to HTTPS.

 

This should put the entire site under HTTPS, even if the customer typed in HTTP, or that's what an existing link has. It might be more efficient to change all the default or NONSSL href entries to SSL, but you'll still need to fix up customers who come in on HTTP. 

 

It's also possible that %{SERVER_PORT} isn't even supported on your server (would probably get a 500 error, too), but then the whole site would probably break.

Share this post


Link to post
Share on other sites

×