Reputation: 1449
I have project created in laravel and I already configure it to https by adjusting the APP_URL=https://www.olympusfood.ca/ in ENV file of laravel folder. I find out when i type http://www.olympusfood.ca in incognito it says that You don't have permission to access / on this server.
I hope someone help me to these thanks.
Upvotes: 0
Views: 914
Reputation: 856
HTTPS/HTTP is not a issue Laravel is concerned with. You need to do some URL redirects outside Laravel first.
On your server/in the control panel of your host you need to create a domain that serves HTTP and redirect all requests to it to HTTPS.
If it's using Apache you can do that with .htaccess and mod_rewrite.
If you are using another web server there are ways to do it too.
Here are some mod_rewrite examples
Upvotes: 1