title: .htaccess and robots.txt rewrite url how to
body: <p>Here is my code for .htaccess</p>
  
  <pre><code>RewriteEngine on
  RewriteRule (.*) index.html
  </code></pre>
  
  <p><strong>Problem : when visit mydomain.com/robots.txt then page again redirect to index.html</strong><br>
  <strong>Required :</strong></p>
  
  <pre><code>if(url contain robots.txt) Then   
      redirect to mydomain.com/robots.txt   
  else   
      redirect to index.html
  </code></pre>