Im not PHP developer but I consider myself advanced user. I have one issue where I think some knowledge of PHP might help me to solve it and who knows, maybe I will learn it eventually
.okay, here is the deal. I have website which is custom written and uses PHP/MySQL.
I recently bought SSL certificate for it and my hosting provider got it installed for me.
I tried to use rewrite in the htaccess file but there has been issues. Code is:
- Code: Select all
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
#Options +FollowSymLinks
It seems that content like images and links are not displayed well. I'm getting website without formatting and when I click on the certificate there is notification that encryption is not good for most of the content. Please see the attached screenshots. You can also see the difference of displaying the website in Chrome and FireFox browsers.
I was chating with the support technician and he told me that I need to change URLs for all my content in each files from HTTP to HTTPS but I dont know how to do that as Im not familiar with the PHP.
Is there some script or code that can I include on the pages in order to rewrite all the paths, image paths included, in order for the SSL certificate to work ok and to get HTTPS written in green instead read and crossed like now?
Images:


Thank you all in advance.
Dean


