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

Cant access HTDOCS in xampp

How do access the localhost folder in my browser when I run XAMPP? The way to do it was to search localhost/ and then you can see the folders within the htdocs folder. But when I search localhost/ I get redirected to localhost/dashboard.

Ive also tried localhost/80, localhost/8000, localhost/etc. Is there a new way to do this?

1 Answer

Tom Gooding
Tom Gooding
16,735 Points

Hi Allen,

http://localhost will land on the index.php for the XAMPP dashboard. If you want to see your project files you need a sub directory in htdocs containing your project files (including an index.html or index.php) and go to that url.

For example http://localhost/yourProject

If you want to access a particular file you can add it onto the end of the url

http://localhost/yourProject/aPage.php