hide file extension (php) in .htaccess file
<p>I know there are many topics, I tried them many times but it doesn't work.</p>

<p><strong>What I want?</strong>
instead of example.com/en/file.php users see only: example.com/en/file</p>

<p><strong>My .htaccess:</strong></p>

<pre><code>DirectoryIndex index.php index.html

RewriteEngine on
*RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ /$1.php*


ErrorDocument 404 /index.php

RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^ru\/index\.php$ "http\:\/\/example\.com\/ru\/" [R=301,L]

RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^en\/index\.php$ "http\:\/\/example\.com\/en\/" [R=301,L]
</code></pre>

<p><em>etc for every Language</em></p>

<p><strong>1. What Have I add to hide extensions?</strong></p>

<ol>
<li>After it works should I use links between pages as "file.php" or only "file"? </li>
</ol>
