title: htaccess redirect then rewrite a url to make it pretty
body: <p>I currently have the url because that is where the file is actually found:</p>
  
  <pre><code>www.example.com/bla/annoying/long.php
  </code></pre>
  
  <p>I redirect a nicer url to the above url with a 301.</p>
  
  <pre><code>redirect 301 /niceee http://www.example.com/bla/annoying/long.php
  </code></pre>
  
  <p>so now when people goto www.example.com/niceee it redirects to the correct page... but the thing is, once the redirection has occurred, it ends up as the annoying long url again.</p>
  
  <p>so they goto www.example.com/niceee and end up at <a href="http://www.example.com/bla/annoying/long.php" rel="nofollow">http://www.example.com/bla/annoying/long.php</a></p>
  
  <p>How do I make it redirect and rewrite the url to <strong>/niceee</strong> ?</p>
  
  <ol>
  <li>so they goto www.example.com/niceee  </li>
  <li>The content of <a href="http://www.example.com/bla/annoying/long.php" rel="nofollow">http://www.example.com/bla/annoying/long.php</a> is shown  </li>
  <li>but the url remains as www.example.com/niceee  </li>
  </ol>