mercredi 17 février 2021

Forcing Laravel 5.7 to HTTPS

I need help forcing Laravel 5.7 on my site to use https.

I'm on a shared host, and this morning my hosting provider "upgraded" the server I'm on from cPanel to Site Tools. In the process, my custom Laravel app got broken.

My hosting provider hasn't provided much help, and I've been searching forums all day and trying lots of different things to no avail. I'm not very knowledgeable about Laravel, and some of the things I've seen on forums about this reference files that don't seem to exist in my particular Laravel app. (I didn't develop this app...definitely above my paygrade.) Some of the forums talk about clearing the cache, but I don't have access to the terminal on a shared host to clear the cache. I've tried making adjustments in .htaccess and .env, but I really don't know what I'm doing.

Currently in dev tools on Chrome I'm getting lots of "Mixed Content" errors. The CSS and JS resources are trying to load http even though the site is https, and they're getting blocked.

Please help. I'll be glad to post code excerpts from my files upon request.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2ZsFMUU
via IFTTT

Aucun commentaire:

Enregistrer un commentaire