php - Can't find images over https -
i'm having question. i'm trying service webshop on https (using letsencrypt). i've added following in .htaccess file direct traffic on https:
# https http. rewriteengine on rewritebase / rewritecond %{https} !on rewriterule (.*) https://www.domain.nl%{request_uri} [l,r=301]
i'm using apache2 on ubuntu 16.04 server. have folder in root /domain_files/uploads
301's /var/www/domain/uploads/
now images not available anymore on https
: https://www.domain.nl/uploads/profilepictures/mxy6x2r8t4u_facebook_profilepic.jpg
http
: http://www.domain.nl/uploads/profilepictures/mxy6x2r8t4u_facebook_profilepic.jpg
i think following code helpful you. got solution using this.
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{https} off rewriterule ^(.*)$ https://%{http_host}%{request_uri} [l,r=301] </ifmodule>
Comments
Post a Comment