Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Developers Map

How to redirect http to https using htacess in laravel

  • 1

if you are using laravel framework in website and you want to redirect http to https using htacess then you can use below code.

USe code :

  RewriteEngine On

    RewriteCond %{HTTPS} off
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Leave an answer

Leave an answer

Browse