The .htaccess
file should be in the root of your WordPress
installation and you may use sub-directories to create more local sites. For example:
localhost/wordpress = xampp/htdocs/wordpress/index.php
localhost/anothersite = xampp/htdocs/anothersite/index.php
// More...
For the WordPress
installation, put the .htaccess
in the wordpress
directory in example (At the same level where the index.php
file is stored).