Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
lockmaster
lockmaster
Looking to make our site always https. How do we get all our existing images to have https url?
 
daviswe
daviswe
I think Google is going to start making all URLS to be https.
 
Alan_G
Alan_G
On an apache server you can add the following to your .htaccess file
 
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
If you are using friendly urls the .htaccess file looks like
 
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /friendly_url.php [L]
</IfModule>
 
This assumes you already have an SSL cert and dedicated IP
Hope this helps.
Alan G
Last modified: 19 Apr 2017 9:29 AM
 
Metz
Metz
daviswe,
 
Please let me know if you run into any issues with this. I need to do that to my site too.
 
thanks!
 
:)