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 Server Paths and Constants

Aaron Agostini
Aaron Agostini
6,285 Points

/htdocs/contact/ not working as root-relative address.

I'm taking the php code challenge, and I'm using /htdocs/contact/ as the root-relative address. It's not being accepted, and I don't understand what I'm doing incorrectly. Any help would be appreciated.

1 Answer

Hi Aaron,

The "htdocs" folder is the site root folder. The path that you have specified would be looking for an "htdocs" sub-folder within the "htdocs" root folder and then the "contact" folder within that.

You simply want to reference the "contact" sub-folder within the "htdocs" root.

/contact/