Junaid Junaid - 9 months ago 51
PHP Question

How to change htdocs to different directory in XAMPP?

How can i change the default root directory to custom

e.g from xampp/htdocs folder to D:/Web projects

I have already tried all the mention methods here and on alot of places none of them working it seems. Any help would be appreciated.

Answer Source

Find the xampp/conf/httpd.conf then change the 'DocumentRoot' to the new directory, also change the 'Directory' tag to the new directory then save the file and restart apache server.