Https和Http可能的力量(Laravel项目)

I created laravel project and the project already configure the SSL Certificate to the server.

Laravel Version 5.6

This is the possible way that i use already to force https however i wont work to me,

    RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^(.*)$ https://www.hiflyer.ca/$1 [R,L]

    //=====//

     if (env('APP_ENV') === 'production') {
        \URL::forceScheme('https');
     }

  //======//

  APP_URL = https://hiflyer.ca

I used to APP_URL to force https it works, however when i type in (INCOGNITO) http://hiflyer.ca/ the browser gives me error You don't have permission to access / on this server.

Where should i configure to access both HTTP and HTTPS

This is more of an Apache thing (as you are using Apache). It seems you have the forcing routes code correct - so try the following in your site configuration:

<VirtualHost *:80> 
ServerName hiflyer.ca
Redirect permanent / https://hiflyer.ca/ 
</VirtualHost>