In development process, I am using Xampp to build my project.
In that, I configure the root directory in the httpd.conf like following:
DocumentRoot “C:/xampp/htdocs/aeee/public”
<Directory “C:/xampp/htdocs/aeee/public”>
Actually, the index.php is located in the aeee/public (aeee is the project folder).
Can I change the root directory like in the xampp config above ?
Changing your root directory isn’t supported, but you can use RewriteRules in a .htaccess file within your htdocs folder to redirect requests to the public directory. Here’s an example from StackOverflow: