Support the ongoing development of Laravel.io →
Installation Configuration Views

Hi, I have uploaded laravel project on godaddy server and updated .env file and also updated all required settings. but when I run ../public link getting only blank screen.

Thanks in advance.

Last updated 3 years 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!

PHPverse

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.

© 2025 Laravel.io - All rights reserved.