Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


page doesn't load my path correctly!

I am currently viewing 'Introducing Constants' url : [http://teamtreehouse.com/library/programming/enhancing-a-simple-php-application/cleaning-urls-with-subfolders/introducing-constants]

Take a look at this problem at [http://geekerati.me/shirts/] You will notice it when you click links on the top. You can download those files when needed to take a detailed look at it here : [http://geekerati.me/sample.zip]

Thank you!

Randy Hoyt
Randy Hoyt
Treehouse Guest Teacher

You have to include the configuration file in [shirts.php] for the BASE_URL constant to be available. You have code in [index.php] to do this, but you don't have that code in [shirts.php].

Does that help?

Thank you so much! I added that config file and fixed all of links at all of html files! everything has been fixed!

1 Answer

Problem is with your css path. Make css path relative to the current page. If relative path did not work, then try with absolute path.