Changing the Apache root htdocs directory in XAMPP – AMPPS

If you want to redirect the Ampps htdocs location, let’s say from “C:\Ampps\www” to “D:\Ampps\htdocs”, here is the easy way to do it.

Go to the Ampps installation dir and open this file:

Ampps\apache\conf\httpd.conf

In this file, find the line:

DocumentRoot "{$path}/www"

and change it to

DocumentRoot "path/to/xampp/htdocs"

Also find the line

and change it to

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.