• Skip to main content
  • Skip to primary sidebar
Martin Taylor

Martin Taylor

PHP, CSS, MySQL and WordPress tips and techniques

Wildcard subdomains in XAMPP

Posted on June 15, 2020

For some time now I’ve been using subdomains in XAMPP, here on my own Win10 PC, for a few of my test sites. It obviously makes things much more realistic when testing functionality.

What I didn’t realise until recently, though, was how much easier this can be made by implementing wildcard subdomains. Any folder inside the web document root is automatically available as a subdomain. You just open a browser to ‘foldername.localhost’ and it’s done.

Not sure why I did, but I chanced upon http://www.sintesisdigital.com.mx/dashboard/docs/configure-wildcard-subdomains.html which gives all the details of how to achieve this.

Incidentally, I found that I didn’t even need to update the hosts file, and while I’d have been OK with doing that, it saves even more time.

Filed under: General

Primary Sidebar

Recent Posts

  • Populating Alpine data in a PHP page (part 2)
  • Thoughts on Tailwind CSS
  • Understanding JavaScript assignments
  • Populating Alpine data in a PHP page (part 1)
  • Alpine JS

Copyright Martin Taylor © 2025