what's solution to produce a .htaccess file in vps. I've attempted the majority of the .htaccess file.however it does not operate in vps. What's the solution?

this is actually the code of htaccess file.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

this isn't employed in vps.