Support the ongoing development of Laravel.io →
Installation Configuration Views
Last updated 1 year ago.
0

set debug to true, godaddy hosting is terrible

0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Infinista infinista Joined 29 Aug 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.