Our entire site is to be served over https. I have 'https' in each route. However, how do I redirect them to https if they attempt it over http?
Route::group(array('https'), function()
{
// all of our routes
}
Our entire site is to be served over https. I have 'https' in each route. However, how do I redirect them to https if they attempt it over http?
Route::group(array('https'), function()
{
// all of our routes
}
Using .htaccess Apache for laravel 4.2.X
Original File
Edit File /public/.htaccess
If behind a proxy and Request::secure() is not working.
Combining previous answers and updating for Laravel 4.2: