title: htaccess redirect issue from same file name to same file
body: <p>I have created the PHP website with some .php files and some .html, it means some files has dynamic content and some files will static.</p>
  
  <p>For dynamic pages I have already done the redirection. The redirection like category page, products list and product details page like the below:</p>
  
  <blockquote>
    <p><a href="http://localhost/project_name/categories.html" rel="nofollow noreferrer">http://localhost/project_name/categories.html</a></p>
    
    <p><a href="http://localhost/project_name/category-name/product-name.html" rel="nofollow noreferrer">http://localhost/project_name/category-name/product-name.html</a></p>
  </blockquote>
  
  <p>Now I want to redirect static pages like the below:</p>
  
  <blockquote>
    <p><a href="http://localhost/project_name/factory.html" rel="nofollow noreferrer">http://localhost/project_name/factory.html</a></p>
  </blockquote>
  
  <p>I have added the condition for that page in my .htaccess like the below:</p>
  
  <pre><code>RewriteRule ^factory.html$ factory.html [R,L]
  </code></pre>
  
  <p>I have gone through the below answers:</p>
  
  <p><a href="https://stackoverflow.com/questions/27188604/htaccess-redirect-index-html-to-index-php-for-domain-root-only?answertab=active#tab-top">htaccess redirect index.html to index.php for domain root only</a></p>
  
  <p><a href="https://css-tricks.com/how-to-redirect-indexhtml-to-indexphp/" rel="nofollow noreferrer">https://css-tricks.com/how-to-redirect-indexhtml-to-indexphp/</a></p>
  
  <p>Please check my below complete .htccess file:</p>
  
  <pre><code>Options -Multiviews
  
  Options +FollowSymLinks
  
  Options +FollowSymLinks
  
  RewriteEngine On
  RewriteBase /granite/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  RewriteRule ^factory.html$ factory.html [R,L]
  
  RewriteRule ^monuments-tombstones.html(.*) monuments-products.php?url=$1
  RewriteRule ^monuments-tombstones+/([a-zA-Z0-9-]+).html$ mproduct-detail.php?url=$1
  
  RewriteRule ^cobble-setts.html(.*) cobble-products.php?url=$1 [QSA,L]
  RewriteRule ^cobble-setts+/([a-zA-Z0-9-/]+).html$ cproduct-detail.php?url=$1 [L,QSA,NC]
  
  RewriteRule ^[A-Za-z-]+.html?$ products-category.php?u=$1 [NC,L]
  
  RewriteRule ^[A-Za-z-]+/([A-Za-z0-9-]+).html?$ product-detail.php?u=$1 [NC,L]
  
  ErrorDocument 404 /404page.php
  </code></pre>
  
  <p>Please help me out this issue.</p>