title: Htaccess code to remove id and title from URLs?
body: <p>I have used my .htaccess file to add <code>www.</code> to index url , remove <code>.php</code> and remove <code>?id=</code> from URLs.</p>
  
  <p>This is original url:</p>
  
  <pre><code>www.site.com/article.php?id=12&amp;title=title-text
  </code></pre>
  
  <p>Url with .htaccess code</p>
  
  <pre><code>www.site.com/article/12
  </code></pre>
  
  <p>This code have removed <code>&amp;title=title-text</code> from url.</p>
  
  <p>How to remove <code>&amp;title=</code> without <code>title-text</code>? Like this:</p>
  
  <pre><code>www.site.com/article/12/title-text
  </code></pre>
  
  <p>.htaccess file</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine on
  RewriteBase /
  RewriteCond %{HTTP_HOST} ^ifeelvideos.com [NC]
  RewriteRule ^(.*)$ http://www.ifeelvideos.com/$1 [L,R=301]
  
  # To externally redirect /dir/foo.php?id=123 to /dir/foo
  RewriteCond %{THE_REQUEST} ^GET\s([^.]+)\.php\?id=([^&amp;\s]+) [NC]
  RewriteRule ^ %1/%2? [R,L]
  
  # To internally forward /dir/foo/12 to /dir/foo.php?id=12
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteRule ^(.+?)/([^/]+)/?$ $1.php?id=$2 [L,QSA]
  
  # To externally redirect /dir/foo.php to /dir/foo
  RewriteCond %{THE_REQUEST} ^GET\s([^.]+)\.php\s [NC]
  RewriteRule ^ %1 [R,L]
  
  # To internally forward /dir/foo to /dir/foo.php
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteCond %{QUERY_STRING} ^$
  RewriteRule ^(.*?)/?$ $1.php [L]
  
  #Alternate default index pages
  DirectoryIndex first.html index.htm index.html index.php
  </code></pre>