Hi,
try this:
https://medium.com/[AT]kunalnagar/deploying-laravel-5-on-godaddy-shared-hosting-888ec96f64cd
change [AT] to @
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Client is hosting 2 websites on 2 different servers with Hostgator. With the first installation everything went just fine and I just did the same steps with the second one. But when I enter URL of the site I just get Hostgator welcome message. but if I enter mysite.com/public it works. I tried changing the .htaccess file but every possible combination didn't worked. My laravel folder is outside public_html and I use symlink to point to /public folder (which works but only with /public trailing the URL). Symlink I used is the same I have been using for years
ln -s ~/laravel/public ~/public_html
So any help would be appreciated.
When replacing the original content of the .htaccess with this
RewriteRule ^(.*)$ public/$1 [L]
the site comes back to life... Original was like this
RewriteRule ^(.*)/$ /$1 [L,R=301]
so the first / was the problem
Please or to participate in this conversation.