Problem with Homepage Images not showing

I don’t really know anything about htaccess files, but mines as simple as:

#+PHPVersion
#=“php74”
AddHandler x-httpd-php74 .php
#-PHPVersion

So could you not just edit and get rid of a lot of the dead wood in there?

I replaced the info in my htacess and use yours and there was no change. I then realised that this htacess is in the top level of the server… i then realsied that there is another htacess file in the “public_html” folder where all the website files are stored which i then open and this is what in the file

RewriteEngine On

RewriteCond %{HTTP_HOST} !^$

RewriteCond %{HTTP_HOST} !^www. [NC]

RewriteCond %{HTTPS}s ^on(s)|

RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Sorry @eekdesign, I don’t understand it (or exactly what it’s doing), but I only have an htaccess file on the top level of the server.
Only the actual website files are in the public folder. Maybe worth a try moving it out. I really can’t say. Apologies.

That htaccess is very simple and driving everything towards https:// or https://www however you don’t really want that option because it dilutes your Seo. I use a different code that works reliably sending everything to https//:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)
RewriteRule ^.*$ https://%1/$1 [R=301,L]

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

If you had images linking to http:// that could easily throw up SSL problems.

N.B If you use this htaccess code above make sure you change your site settings to https://eekdesign.uk/ and export the site again.

Hi,
I have just updated my htacess with yours,
Thank you for your help
Much appreciated

No problem, I have just deleted the the acess from my public folder :slight_smile:

I don’t think you have done that right. It still goes to www if you try that.

is this correct?

Remove that last line “if you had images” etc. Make sure you then save the changes.

Inside Blocs remove the www part of the web address. That should be https://eekdesign.uk/ with this htaccess as mentioned above. You will then have to export and upload the site again.

Hi, I have done this, thankyou

Very strange, it’s still not right. I’ve done this on various different servers over several years and never had a problem. I am wondering if there is something particular about your server.

Images on your site now appear for me, so you’re finally heading in the right direction. :upside_down_face:

1 Like

EDIT:
The issue has been resolved. Removing the manually added canonical tag from the page header did the trick.

1 Like

Images appearing for me as well on Android, suggesting your htaccess was blocking them. I am still perplexed though why it isn’t always going to https:// as it should.

Thankyou for the offer of trying my files on your server, much appreciated.

1 Like

…Thankyou for the offer of trying my files on your server, much appreciated.

If this had been a bug with Blocs you could have submitted it here Reporting Bugs – Blocs – User Documents

From what we have now seen it seems clear Blocs was not at fault, but I find it hard to believe your web host would be adding htaccess referencing browsers from the 1990s.

You could try to query that with them but web hosts would not normally include an htaccess file at all. That’s the sort of thing I would have expected to see if you had some ancient site built with Frontpage or something similar at that domain.

2 Likes