0

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 follow the instruction that i need to copy .htaccess to the root folder of project

enter image description here

I hope someone help me to these thanks.

1

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.