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!

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


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.