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

I have problem with my website after uploading it to my hosting company

I followed every step from the cleaning url tutorials, and using htaccess i was able to sort out my blog page and blog-detail page... it all works just fine on my localhost but as soon as i uploaded it to the server the blog page is forbidden. i really don't know what to do, and its frustrating.

Any help

4 Answers

Thanks guys, i just resolved the issue. Apparently when i uploaded my website the htaccess file did not go with it. So i had to show the file on the server and make changes directly on the web host.

James Barnett
James Barnett
39,199 Points

This is just a guess, but FTP clients by default don't show files that have a dot in front of them, as it's often .htaccess so that may have been your issue.

Try calling your hosting company, some times they can straighten it out

Sukhraj Grewal
Sukhraj Grewal
10,554 Points

i am not sure if this helps .but some hosts will give forbidden error if you are missing home page files like index.html index.php.

Sukhraj Grewal
Sukhraj Grewal
10,554 Points

i am not sure if this helps .but some hosts will give forbidden error if you are missing home page files like index.html index.php.