by Froosh » 06. July 2022 22:02
1. You could add the page to the htdocs folder, but that is not necessarily the best approach. The default configuration of XAMPP has very little actual content in that folder. Most content is in folders under there. In fact, the default index.php redirects to the dashboard folder under htdocs. Generally, you want to group related pages and content. For instance, if I spin up a local WordPress site, the entire site ends up in set of folder and subfolders under htdocs. Then, if I want another local site, no problem, that site and all its bits are independent of any other site I have. Naturally, you could, if you wish, just dump everything into htdocs, as after all, it is your setup.
2. Not really sure there. I have only needed to access my sites on XAMPP from my local machine. Perhaps others have done this. You could do a web search with something like "accessing xampp sites from local network" not sure if that will lead to anything, but worth a try.