Support the ongoing development of Laravel.io →
Security Views

Hi everybody. Yesterday I installed an SSL certificate on my hosting. The project is Laravel 5. Home page opens normally the link https://my_site But the rest of the pages are opened without css styles because somehow styles on those pages are registered

<link href = "HTTP: //my_site/css/bootstrap.min.css" rel = "stylesheet">

while the main page and other pages extends template app.blade (<link href="{{ asset('/css/bootstrap.min.css') }}" rel="stylesheet">) I.e. everywhere should have the same link to connect styles. I thought the problem is in the cache. I cleared folders storage/framework/sessions and storage/framework/views, but all remained unchanged. Tell me please what could be the problem?

Last updated 3 years ago.
0

I resolved this problem. I added URL::forceSchema('https'); in the file at the beginning /app/Http/routes.php

0

Sign in to participate in this thread!

Eventy

Your banner here too?

kostik34 kostik34 Joined 29 Jan 2016

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.