Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Shane McC
Shane McC
3,005 Points

Uploaded laravel website, everything uploaded to the "public" folder?

Hi Everyone

I built a website using laravel 4. I uploaded my website to the internet for the first time but the upload didn't go as planned. Everything in my website uploaded to the "public" folder you see if the image below.

If I were to click on the "public" folder my website works nicely within that folder but I don't want my website within the "public" folder. My question is, how would I fix this? Thanks

http://tinyurl.com/kgr8erm

The best answer depends on the specifics of your hosting, but assuming you use shared hosting there are a several methods here: http://driesvints.com/blog/laravel-4-on-a-shared-host

I usually symlink the public_html folder to the application's public folder and find it works well.
With subdomains the cPanel interface allows you to specify the a folder directly so it's only the main domain that will require special attention. Hope that helps!