I’m not sure what this issue is to do with but when I access the site via http instead of https the images in the menu and the footer do not show.
You could use htaccess to always redirect to https.
how do I set that?
I’ve not actually done this myself, though I have done other kinds of redirects, but this is what I found on how to do it for the whole site:-
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
https://www.ndchost.com/wiki/apache/redirect-http-to-https
Ok I checked and it seems I have the simplessl plugin installed and it has been working up until now so not sure why it has changed.
Anyway I have this in my htaccess file:
# BEGIN rlrssslReallySimpleSSL rsssl_version[2.3.1]
# <IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteCond %{HTTP:X-Forwarded-Proto} !https
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# </IfModule>
# END rlrssslReallySimpleSSL
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
any suggestions on what I should do to change/fix it?
First, for safety, make a back-up of the htaccess as it is now.
Then try adding the lines of code I posted, after RewiteBase
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# New condition and rule added here.
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
See if it works, if not revert to the backup.
Topic Moved to Server Config.
That sorted it! I’ve been trying to fix that for so long. Thank you for your help…
the other thing you can do is leave off the http or https on image src’s or links etc and the browser will choose depending on whether the page loaded in http or https.
e.g
<img src="//example.jpg">
if you load it on a page with http the image will just load as http. If you load the page as secure the browser will try and load the image as a secure https image.
hth
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.