Site broken after modifying .htaccess file
<p>I recently added these lines to my .htaccess file on the server:</p>

<pre><code>RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
</code></pre>

<p>What I was trying to do was eliminate the need for .php after the file name. This worked wonderfully, but something else was broken.</p>

<p>The URL for the website was <code>http://subdomain.something.domain/eCom/</code> and I had an index.php file in it, which was automatically loaded when the above link was used. But after editing the .htaccess file, the above link returns a 404 error. The page still opens correctly if I use <code>http://subdomain.something.domain/eCom/index</code> or <code>http://subdomain.something.domain/eCom/index.php</code>. I don't know what's happening. Anyway this can be resolved?</p>

<p>Note: I don't understand the code above about all the RewriteEngine stuff. I just copied from a website hoping for a quick fix. Any additional information about it is welcomed, if that's what's breaking my code.</p>