Apache - Domain for localhost to access folders as http://folder.local
I'm running XAMPP on Ubuntu and I'd like to create a virtual host for my projects, so that I have a tld assigned to my server root directory (for example .local) and folders inside it accessible through URLs as http://foldername.local . Also, how much more complicated would it be to use .htaccess to have http://someotherdomain.local redirect to the /foldername path in the server root? I've managed to do it on my own. It is possible to do it, however you'll need to install a DNS server . Note: I decided to use .dev as my local domain, so in the following examples, the dev part will refer to my