title: How to redirect pages via htaccess when URL appears after the file extension?
body: <p>I already have htaccess redirection for all bad requests to custom/default 404 page:</p>
  
  <pre><code>ErrorDocument 404 /404.html
  </code></pre>
  
  <p>But still the site can be accessed like:<br>
  <code>http://www.domain.com/index.html/http:/domain.com</code></p>
  
  <p>It cause duplicate content issue and duplicate SEO tag issues.
  Any suggestions? </p>