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 Enhancing a Simple PHP Application Cleaning URLs with Subfolders Introducing Constants

XAMP Acess forbidden error

Hi, I'm learning "Cleaning URLs with subfolders" stage. When I'm clicking to the contact page or shirts page I got this error: You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

I compared my code with the one from project files, they are the same and as I can see there is some error with my server? If so how can I awoyd that so I can compleate this stage? I can't acces links to contact page or shirts page and also at the index.html it seems that css also isn't working but there is simply text and pictures.

any help would be appreciated. I'm sorry if my English is not perfect.

1 Answer

I figured it out. my problem was that I was forgot to add require_once method at the begining at the first page of my homepage.