Why does my website appearance break under HTTPS but not HTTP ?

Post

Posted
Rating:
#8420 (In Topic #2772)
Avatar
Standard member
friendly is in the usergroup ‘Community saint’
I have just had a security certificate installed by my webhost. I now notice that the website doesn't look the same under HTTPS as it does under HTTP.

Any idea what is going on?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#8421
Avatar
Site staff
Adam Edington is in the usergroup ‘Super-moderators’
I'm not sure. I have https enabled with Composr without issue. Perhaps you have added a direct http link somewhere rather than a relative link? Mixed content is blocked by browsers when viewed via https. It looks like an issue with your CSS and perhaps some JS, hard to tell. Your images seem to load fine. I also notice this is an ocPortal site, so maybe Chris has better advice to share but this is the usual reason. More info @ The HTTPS-Only Standard - Mixed Content
Online now: No Back to the top

Post

Posted
Rating:
#8422
Avatar
Standard member
friendly is in the usergroup ‘Community saint’
Well if you can, go to Https://DavidLFriend.com/Add_Site. I say if you can because when i click the link above I get a 404 error but on my devices i dont (???). This website is my new Composr website of the same content as the ocPortal site and placed under a subdirectory of the ocPortal site. That is the ocPortal site is in PUBLIC_HTML/  and the Composer is placed under PUBLIC_HTML/ADD_SITE. There is that security certificate on the domain DavidLFriend.com and I see the secure connection lock symbol shown on my computer and phone when accessing the Composr site.

Anyway there is nothing breaking my site. Also in reguard to any changes to SSL or JS, on this site I purposely did none. So the page is stock except for using the theme wizard to "customize it".

I am not going to use the old ocPortal site once I can get the domain pointing it. And I believe I am changing hosts so that will probably happen soon.

Anyway The old site breaking was an immediate result of the installation of the SSL certificate on my domain.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Adam Edington)
#8423
Avatar
Standard member
sholzy is in the usergroup ‘Community saint’
What about: https://davidlfriend.com/add_site/

I was able to access it after changing the "Add_Site" to all lowercase letters.

Steve
Online now: No Back to the top

Post

Posted
Rating:
#8424
Avatar
Standard member
friendly is in the usergroup ‘Community saint’

sholzy said

What about: https://davidlfriend.com/add_site/

I was able to access it after changing the "Add_Site" to all lowercase letters.

Great, that works… but WHY?



Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#8425
Avatar
Standard member
sholzy is in the usergroup ‘Community saint’
I really don't know why. A lot of this stuff I've forgotten since I don't mess around with it anymore.

Maybe your certificate was created using "add_site" vs "Add_Site" ? But I'd think that would just throw a site not secure warning.

"add_site" or "Add_Site" is just a directory in your root. Which way was it created and which way is it now?

Steve
Online now: No Back to the top

Post

Posted
Rating:
#8426
Avatar
Standard member
friendly is in the usergroup ‘Community saint’
Sholzy, the certificate is on the domain davidlfriend.com. since The subdirectory add_site is under the domain, it is covered by the certificate.

I also checked the subdirectory and it is written all in lower case.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Business Art Gallery
powered by ocPortal
Online now: No Back to the top

Post

Posted
Rating:
#8427
Avatar
Standard member
sholzy is in the usergroup ‘Community saint’
On Linux all folders (directories) and file names are case sensitive, which is why "add_site" works and "Add_Site" does not. I don't know if Windows web servers are the same as Linux (I assume they are).

Steve
Online now: No Back to the top

Post

Posted
Rating:
#8429
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hey,

I read over this pretty quickly, but from what I see we're talking about a couple of issues…

  1. Why does the site at the root of the domain have broken CSS etc.
  2. Why the Add_Site site is not working on https unless lower case.

1- probably you need to edit the _config.php file (Composr) or info.php file (ocPortal) to change the base URL setting to be https:// instead of http://. This should stop it calling http resources for an https site and thus failing due to mixed content.

2- It is indeed weird. My guess is the Apache 'CheckSpelling' option is on for the server's HTTP configuration but not the server's HTTPS configuration.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,051 topics, 7,194 posts, 10,824 members
  • Our newest member is gracenayjanjoh
Birthdays:
Back to Top