@dana
To create an alias using XAMPP, you need to follow these steps:
- Open the XAMPP control panel and click on the "Config" button next to Apache.
- Select "Apache (httpd.conf)" from the dropdown menu.
- This will open the configuration file in a text editor.
- Look for the section that starts with "".
- Inside this section, you can add your own aliases. The syntax for creating an alias is as follows:
Alias /desired-url "/path/to/folder"
Replace "/desired-url" with the URL you want to access and "/path/to/folder" with the actual path to the folder on your system.
For example:
Alias /my-alias "/opt/lampp/htdocs/my-folder"
- Save the changes to the configuration file and close the text editor.
- Restart the Apache server by stopping and starting it again from the XAMPP control panel.
- After restarting, you should be able to access the folder using the specified alias URL.
For example, if you created an alias called "/my-alias", you can access it in your browser by entering "http://localhost/my-alias".
Note: Make sure to save a backup of the configuration file before making any changes in case you need to revert back.