Just a quick addition - It looks like the bluehost servers are running PHP 5.4.24 so that shouldn't be the problem, even though it looks like DIR isn't being parsed correctly.
Hello!
I recently deployed a Laravel site to bluehost. Since I use my bluehost account for several sites, i have a subdirectory for each inside my /public_html directory. I deployed the entire laravel site to the subdirectory for my site, then I created a subdomain to point to the laravel /public folder for its document root.
so deploy to /public_html/mysite/ subdomain doc root=> /public_html/mysite/public
Then the laravel config works with its original settings.
antiquarian said:
Hello!
I recently deployed a Laravel site to bluehost. Since I use my bluehost account for several sites, i have a subdirectory for each inside my /public_html directory. I deployed the entire laravel site to the subdirectory for my site, then I created a subdomain to point to the laravel /public folder for its document root.
so deploy to /public_html/mysite/ subdomain doc root=> /public_html/mysite/public
that is what i have done and works nice.
Then the laravel config works with its original settings.
You can do this with .htaccess
Assuming your folder structure looks like:
public_html/
.htaccess
app/
public/
vendor/
bootstrap/
html/
...
...
...
Edit your .htaccess and add this:
RewriteEngine On
RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.*)$ /public/$1 [L]
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community