Changing the Apache root htdocs directory in XAMPP - AMPPS

If you want to redirect the Ampps htdocs location, let's say from "C:Amppswww" to "D:Amppshtdocs", here is the easy way to do it.

Go to the Ampps installation dir and open this file:

Amppsapacheconfhttpd.conf

In this file, find the line:

DocumentRoot "{$path}/www"

and change it to

DocumentRoot "path/to/xampp/htdocs"

Also find the line

<Directory "{$path}/www">

and change it to

<Directory "path/to/xampp/htdocs">

Gearloose

Welcome to my blog. My name is Akis Mparekas. I am a freelance web developer. I like to try and make stuff, either for work or hobby. I love good beer, bad movies, and anything retro.

Respond on “Changing the Apache root htdocs directory in XAMPP - AMPPS

Leave a Reply

Please log in or register to add a comment.