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 trialDavid Day
Courses Plus Student 13,837 Points403 Forbidden page
When you create the directory testsite.com and add the index.php test file into it, you get a Forbidden...You don't have permission to access / on this server. 403 page.
14 Answers
Matt Campbell
9,767 PointsLudwing Najera - The naming convention used here is absolutely fine. Not a thing wrong with it. testsite.com is the directory for which the site files reside in. So, url to homepage will be
http://localhost/testsite.com/index.php
David Day - glad you've got it sorted. Ignore what Ludwing was saying, bad information offered there.
Ludwing Najera
4,596 Pointsi have done this before... tell me, did you update the website by moving the local public_html to the remote public_html
David Day
Courses Plus Student 13,837 PointsNot to my knowledge. Where would I need to go to check this? My memory is kind of fuzzy as I set this up a while back and am just now being able to come back to it.
Ludwing Najera
4,596 Pointsdo you know where the website files are?
David Day
Courses Plus Student 13,837 Pointsas of right now they are located in MAMP/htdocs/testsite.com/index.php. This is where I get the 403 page. If I delete the testsite.com directory and put it in MAMP/htdocs/index.php everything works fine.
Ludwing Najera
4,596 Pointsthat website seems wierdly named... why dont you name testsite.com testsite.html
Ludwing Najera
4,596 Pointsif its php name it testsite.php
Ludwing Najera
4,596 Pointsif its php name it testsite.php
Ludwing Najera
4,596 Pointsif its php name it testsite.php
Ludwing Najera
4,596 Pointsholy crap that was wierd
David Day
Courses Plus Student 13,837 PointsI am just following the Local WordPress Development class instructions to learn this. I am doing everything the video is telling me and it is not working out. Check out this video and you will see what I am talking about http://teamtreehouse.com/library/local-wordpress-development/local-wordpress-development/installing-a-local-web-server-on-a-mac Start watching at about 1 min and 55 sec.
Ludwing Najera
4,596 Pointsif testsite.com is the main page, it has to be called index in the directory and nothing else. example: index.php, correct! meap.php, WRONG!
Ludwing Najera
4,596 Pointsthe website adress will still be testsite.com though
David Day
Courses Plus Student 13,837 PointsThanks so much. I appreciate all of your help. I figured out what was going wrong. I didn't have MAMP setup right to index directories. An hour and a half later and such a simple careless mistake on my part but learned from it. Thank you.
David Day
Courses Plus Student 13,837 PointsDavid Day
Courses Plus Student 13,837 PointsThanks so much Matthew Campbell. I greatly appreciate it.