How to create alias using xampp?

by caesar_kertzmann , in category: General Help , 2 months ago

How to create alias using xampp?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by raphaelle , 2 months ago

@caesar_kertzmann 

To create an alias using XAMPP, you need to follow these steps:

  1. Open the XAMPP Control Panel.
  2. Click on the "Config" button next to Apache.
  3. Select "httpd.conf" from the drop-down menu.
  4. The httpd.conf file will open in a text editor. Search for the section "Alias /path/to/alias/ "C:/path/to/original/directory/"". Note: In this line, replace "/path/to/alias/" with the desired alias name and "C:/path/to/original/directory/" with the actual file path you want to alias.
  5. Uncomment the line by removing the "#" symbol at the beginning.
  6. Save the changes and close the text editor.
  7. Restart Apache from the XAMPP Control Panel.


After following these steps, you should be able to access the original directory using the alias you specified. For example, if you created an alias called "myalias" for "C:/xampp/htdocs/mydirectory/", you can access it in your web browser by typing "http://localhost/myalias".