After I visit the test version of my website say http://localhost/test the URL will get rewritten to http://localhost/test/?url=/www/myusername/mysite/docroot/test

Otherwise URL spinning works ok, the only issue is around the index/default page if this does not possess a trailing forward slash. http://localhost/test/ works normally.

I'm not going it showing your directory structure or even the query string the URL will get rewritten to. htaccess is

RewriteEngine On
RewriteCond %{REQUEST_URI} !\.(css.php|swf|js.php|gif|jpe?g|png|css|js|json|xml|ico)$
RewriteRule ^(.*)/?$ index.php?where=$1 [QSA,L]

Exactly the same site/htaccess works normally on other servers. What is the issue on that one?