Support the ongoing development of Laravel.io →
Security Architecture

I have a site that I want any logged in action to be protected under SSL, say all routes are under /admin. I am running on NGINX and have SSL working when I go to the https://www.domain.com. I have looked around and this thread has some good info:

http://stackoverflow.com/questions/19967788/laravel-redirect-all-requests-to-https

My questions are...

  • At the moment when I go to my https:// my asset urls are broken, how best to link to assets (css,js) through https ?

  • Can I make it so asset urls are different depending on how it's accessed or should I have a secure template and insecure one with different asset urls ?

Many thanks,

Gwilym

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

netm netm Joined 2 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.