I have a website that used to work with HTTP
for 12 years. Current database is about 6-7 years old with small modifications, but content is this old and all news entries have images inside it's content (it's news website).
Now I want to go for HTTPS
but I have a problem. Images are requested over HTTP
because links to images are stored this way in database.
Is there a way to make all these requests switch to https
without actually going to database and changing all these links to https?
Current version of website is developed using Laravel 4.
I've already added this to .htaccess
.
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]