There are different solutions for your problem. The quick & easy (but dirty) solution:
simply edit DocumentRoot in httpd.conf and change it from c:/xampp/htdocs to c:/xampp/htdocs/mywebfolder. Also adapt the following <Directory....> option to c:/xampp/htdocs/mywebfolder
If you do so, your project will appear under
http://localhost/index.php (instead of
http://localhost/mywebfolder/index.php), thats exactly what you need. Disadvantage: the Xampp Dashboard does not appear anymore.
The "clean" solution: define VirtualHosts for your Xampp Installation. You need two VirtualHosts, one is "localhost" (you need it only for the existing dashboard and/or phpmyadmin installation), the other is (for example) "mywebfolder" (but i dont like this name, because it sounds like "folder", but it is a servername instead). You should take another name, lets say "mywebserver". In the VirtualHost for "mywebserver" (see the Apache Documentation about VirtualHosts) define DocumentRoot as shown above c:/xampp/htdocs/mywebfolder. When the VirtualHosts are ready (and ok), you may reach your project via
http://mywebserver/index.phpFor the VirtualHost "mywebserver" you have to edit the Windows hosts file (see Wiki if you are unsure) and insert one line for this name:
127.0.0.1 mywebserver
If you dont do so, you will receive an error "unknown server" when you enter
http://mywebserver in your browser.