Laravel Redirect HTTP to HTTPS via .htaccess

Today, i am going to share with you, how to redirect http to Https in laravel You create file .htaccess in root laravel <IfModule mod_rewrite.c>     RewriteEngine On     # Force SSL     RewriteCond %{HTTPS} !=on     RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]     # Remove public folder form URL     RewriteRule ^(.*)$ public/$1 [L] </IfModule>

How to redirect http to https using .htacess

Editing .htaccess in cPanel File ManagerNote: Backup your website in case something goes wrong. Login to cPanelFiles > File Manager > Document Root for:Now select the domain name you want to accessCheck “Show Hidden Files (dotfiles)”Click “Go” After a new tab or window opens, look for the .htaccess file.Right click on the .htaccess file and […]

Let's get to work

Contact Us
Need Help? Chat with us