Previously I was crapped with same problem, here is the solution what I did.
I created a directory say "home" inside the public folder and copied entire laravel application in "home" directory. Then I created ".htaccess" file in "public" directory. Here are the contents of .htaccess file.
#
# Please, add this .htaccess file to your root directory.
# If you've added all the Laravel files to your root directory then everything should be fine.
# Else, you'll require to change the `public/` to your `foldername/public` where the public folder is located
#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteRule ^(.*)$ home/public/$1 [L]
</IfModule>
Hope it helps you @Infinista.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community