title: External and internal redirection using htaccess
body: <p>I want to convert <a href="http://mywebsite.com/folder/file.html" rel="nofollow noreferrer">http://mywebsite.com/folder/file.html</a> to <a href="http://mywebsite.com/file" rel="nofollow noreferrer">http://mywebsite.com/file</a>. 
  I am not using regular expression as first I am only concerned about this one URL only.</p>
  
  <p>I tried this-</p>
  
  <pre><code>Redirect 301 /folder/file.html http://mywebsite.com/file
  </code></pre>
  
  <p>Using this I am able to externally redirect this URL to the desired one but since the URL doesn't exist so I am getting 404.</p>
  
  <p>Now, in order to internally redirect the new URL to the old one, I am using below command but it doesn't seem to work-</p>
  
  <pre><code>RewriteRule http://mywebsite.com/file http://mywebsite.com/folder/file.html [L]
  </code></pre>