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 trialJaya Powell
139 PointsHow do I redirect the local host from c:xampp/htdocs to c:/sites using window version of xampp?
The tutorial skips the redirect section for windows. It is shown explicitly for mac, but skipped completely for windows. I have everything setup correctly, there is no preferences section in the windows version of XAMPP.
I think this is causing a lot of confusion for most windows users following the tutorial!
2 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Jaya,
I'm using Windows/Xampp myself but I opted to keep everything in the "htdocs" folder so I haven't personally tried this.
I did find these links which should get you going:
http://blog.mdsohelrana.com/2011/11/01/how-to-change-the-document-root-in-xampp-on-windows/
You'll need to edit the 'httpd.conf' file. You may want to make a backup of this file in case things get messed up when you edit.
An easy way to get to the file is to open up your xammp control panel and then click the "config" button for apache. You should then have a menu option to select that file.
It opens up in notepad for me. Once open you can use the find command from the edit menu to search for "DocumentRoot"
Deb Smith
Courses Plus Student 154 PointsThanks! That was super straightforward and really did the trick :)
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsAlso, if apache is already running then stop it and restart it again after you have saved the changes you made.
Jaya Powell
139 PointsJaya Powell
139 PointsThanks!
I think I am probably just going to keep using the htdocs file. :)