After moving this mod_rewrite code from .htaccess in the directory to apache2.conf its no longer working
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L,NS]
error
Bad Request
Your browser sent a request that this server could not understand.