LAMP CSS broken after installing SSL


I have installed on a droplet LAMP (one click install) and after that, i have uploaded my website files. Everything went smooth but i decided to install Let’s Encrypt SSL and now my site is working but without CSS.

I mean it loads like it doesn’t have CSS at all (tried multiple browsers) and i don’t know where to look and what to change.

PS: when i installed the SSL i chose this option:

“2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for new sites, or if you’re confident your site works on HTTPS. You can undo this change by editing your web server’s configuration.”

Thank You for your help.



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Unless your CSS is inline, which isn’t recommended, it means that your CSS is being loaded from a separate file that you have linked to.

You want to ensure that this file is available via HTTPS at the expected URL as well, as all of the requests will be automatically directed to HTTPS instead of HTTP.

Most likely the way you were loading your CSS was through HTTP, and HTTPS isn’t setup which is why the request is failing and your CSS isn’t loading and displaying as expected.