title: htaccess rewriting address bar
body: <p>Have been trying to change my urls to make them more SEO friendly
  and at the moment have managed to get them sort of working how
  I want it.</p>
  
  <p>My original url is this:
  <a href="http://www.example.com/index.php?keyword=nikon" rel="nofollow">http://www.example.com/index.php?keyword=nikon</a></p>
  
  <p>So managed to get this rewriting so that it now looks like this:</p>
  
  <p><a href="http://www.example.com/compare/nikon.html" rel="nofollow">http://www.example.com/compare/nikon.html</a></p>
  
  <p>Using this:</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^compare/([^/]*)\.html$ /index.php?keyword=$1 [R,NC,L]
  </code></pre>
  
  <p>But I have tried to get the end result so that the url in the address bar 
  is like this: <a href="http://www.example.com/compare/nikon.html" rel="nofollow">http://www.example.com/compare/nikon.html</a></p>
  
  <p>If I change it so that the rewritten url is in the address bar will the 
  variables still be passed and in instances where there is an anchor # tag 
  after the url will it still work?</p>
  
  <p>Thanks for any help</p>