Well, I know that it should be done by .htaccess my .htaccess is in the root of my site and here it's content
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
Also mod rewrite is enabled at my server.
I have a form with an action on ./getReadings.php
in it.
But when I change it to ./getReadings
it says that tehre isn't such file on server. What's my mistake?