title: .htaccess: Redirect all pages except one
body: <p>I'm trying to setup my <code>.htaccess</code> file to redirect from <code>oldsite.com</code> to <code>newsite.com</code>, with just one exception: If the user visits <code>http://oldsite.com/cal</code> then I want it to display the <code>cal.html</code> file in the root directory.</p>
  
  <p>Here's the current <code>.htaccess</code> file that I've got (which doesn't work):</p>
  
  <pre><code>Options +FollowSymlinks -MultiViews
  RewriteEngine On
  
  # this page can be served .. (not working)
  RewriteRule /cal http://oldsite.com/cal.htm [L,NC]
  
  # .. but rewrite everything else (this works fine)
  RewriteCond %{HTTP_HOST} ^(www\.)?oldsite\.com  [NC]
  RewriteRule ^(.*)  http://newsite.com/$1     [R=301,L,NC]
  </code></pre>
  
  <p>What do I mean by <em>it doesn't work</em>? Well, it just redirects <code>http://oldsite.com/cal</code> to <code>http://newsite.com/cal</code> instead of displaying <code>http://oldsite.com/cal.html</code></p>