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

WordPress Local WordPress Development Local WordPress Development Installing WordPress Locally

How 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

Hi 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:



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"

Also, if apache is already running then stop it and restart it again after you have saved the changes you made.


I think I am probably just going to keep using the htdocs file. :)

Deb Smith
Deb Smith
Courses Plus Student 154 Points

Thanks! That was super straightforward and really did the trick :)