laravel 8 Http to Https Using .htaccess Example
Hello Dev,
As we speak, i we are going to present you laravel eight http to https utilizing .htaccess instance. This text offers you easy instance of laravel eight http to https utilizing .htaccess instance. you’ll study laravel eight http to https utilizing .htaccess instance. So let’s observe few step to create instance of laravel eight http to https utilizing .htaccess instance.
Add following code in backside of .htaccess file.
# guarantee www. RewriteCond %{HTTP_HOST} !^www. [NC] RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # guarantee https RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Komentar
Posting Komentar