title: SEF url without name with core php and .htaccess
body: <p>I want to make SEF url In that i want to remove file name also from the url.
  my site is in the core php, I manage to remove the extension from the url but didn't have idea that how to remove the whole file name from the url.</p>
  
  <p>As i searched on google i got this code for the .htaccess </p>
  
  <pre><code>    RewriteCond %{REQUEST_FILENAME} !-f 
      RewriteCond %{REQUEST_FILENAME} !-d 
      RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <p>I have no idea that how to write header in php so it goes in related file but don't show the file name in url.</p>
  
  <pre><code>    &lt;a href='http://mysite.com/edit/user/2/1'&gt;click&lt;/a&gt;
  </code></pre>
  
  <p>Now if i click on above link it does goto edit.php with url "mysite.com/edit/user/2/1",</p>
  
  <p>so from this how can i remove file name that is "edit".</p>
  
  <p>Thanks in advance</p>