title: .htaccess PHP Rewrite Rules
body: <p>I have this .htaccess file and it worked perfectly</p>
  
  <pre><code>RewriteEngine On
  
  RewriteBase /
  
  RewriteRule ^([\w-]+)\.html$ index.php?ID=$1
  </code></pre>
  
  <p><a href="http://example.com/ipad.html" rel="nofollow noreferrer">http://example.com/ipad.html</a></p>
  
  <p>but i have a problem when the the url ( id) Contains slashes</p>
  
  <p>for example </p>
  
  <p>id=1/4ABCD Which gives this url (<a href="http://example.com/1/4ABCD.html" rel="nofollow noreferrer">http://example.com/1/4ABCD.html</a>)</p>
  
  <p>Please how resolve this problem?</p>