Solution for "how to redirect http to https in laravel"

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteRule ^(.*)$ public/ [L] </IfModule>

redirect http to https htaccess laravel 8

// app/Providers/AppServiceProvider.php URL::forceScheme('https');

force https redirection laravel

RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

redrectnh to https n laravel

Similar codes for "how to redirect http to https in laravel"


Latest 'PHP' questions

Added before "how to redirect http to https in laravel"