title: URL re-writing using .htaccess
body: <p>I have a URL:
  <strong>domain.com/abc/hotel_detail.php?id=2</strong></p>
  
  <p>And I want to do a URL re-write to make it look like this :
  <strong>domain.com/abc/hotel_detail/2</strong></p>
  
  <p>My current .htaccess looks like this:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^\.]+)$ $1.php [NC,L]
  
  RewriteCond   %{QUERY_STRING} ^id=20$                   
  RewriteRule   ^abc/hotel_detail/([0-9]+)$  ^abc/hotel_detail.php?id=$1 [L]
  </code></pre>
  
  <p>The first part contains code for removing the extension(.php) from pages.</p>
  
  <p>When I try to open this link <strong>domain.com/abc/hotel_detail/2</strong> , it gives me object not found error. </p>
  
  <p>Can Someone please tell me whats wrong with the code?</p>