Recently I've been using vagrant for a university assignment and we have to use the single entry point concept by routing everything through the index.php page. Naturally this makes Urls quite ugly (for eg: index.php?page=bookings). So I tried using .htaccess files which work flawlessly with standard php using Xampp.
But I can't get the URLs to redirect in vagrant when I place the .htaccess file in the public folder where the index.php resides. The file path is vagrant\websites\default\public.htaccess
.htaccess file code
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) index.php?page=$1 [QSA,L]
Is it not working because Vagrant uses Nginx server? Any sort of help would be appreciated