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

Moving "Shirts4Mike" files

Hello,

I just finished creating Shirt4Mike E-commerce site via PHP. Now I would like to work on other projects of my own. So I created a new folder inside my htdocs folder called "shirts4mike" and I moved all my project files there. However, now when I go to "localhost/shirts4mike/" all I get is blank pages. I cannot view anything. And when I move my files back to "htdocs" I can view them again.

I would like to have the files be inside my new folder "shirts4mike" and still work. Any ideas ?

Thanks

2 Answers

If I remember correctly, you reference URLs using absolute URLs for things such as headers and scripts.

Did you change those from 'localhost/' to 'localhost/s4m/' ?

Thanks Logan,

That partially solved the issue. Most of the pages work, except shirts.php and shirt.php. I'm pretty sure it's because of the rewrite rules, but I can't figure out how to fix it.