title: Remove directory name from url
body: <p>Because all my files are php I have removed php extension with this .htacess file:</p>
  
  <pre><code>RewriteEngine On
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php
  </code></pre>
  
  <p>So I have this URL:</p>
  
  <pre><code>http://example.com/live/kanal/some-title-1
  http://example.com/live/kanal/some-title-2
  http://example.com/live/kanal/some-title-13
  http://example.com/live/kanal/some-title-45
  http://example.com/live/kanal/2some-title-333
  </code></pre>
  
  <p>etc ...</p>
  
  <p>I want to hide kanal/ from url, to get URL like this:</p>
  
  <pre><code>http://example.com/live/some-title-1
  http://example.com/live/some-title-2
  http://example.com/live/some-title-13
  http://example.com/live/some-title-45
  http://example.com/live/2some-title-333
  </code></pre>
  
  <p>How can I achieve this using mod_rewrite?</p>
  
  <p>I used online generators for doing the rewrite rules but none can remove a piece of text from the URL. Also I made search on this forum, and I found some posts about mod rewrite directory but I have issues when pasting in my .htacess code.</p>