title: How to use htaccess to rewrite url to html anchor tag (#)
body: <p>I have a situation where I want to take the following URL:</p>
  
  <p>/1/john</p>
  
  <p>and have it redirect using Apache's htaccess file to go to </p>
  
  <p>/page.php?id=1&amp;name=john#john</p>
  
  <p>so that it goes to an html anchor with the name of john.</p>
  
  <p>I've found a lot of reference to escaping special characters, and to adding the [NE] flag so that the redirect ignores the # sign, but these don't work. For example, adding [NE,R] means that the URL just appears in the browser address as the original: <a href="http://example.com/page.php?id=1&amp;name=john#john" rel="noreferrer">http://example.com/page.php?id=1&amp;name=john#john</a>.</p>