title: WordPress rewrite rule for RSS feed
body: <p>I have just moved a blog from Squarespace to self-hosted WordPress and am trying to set up a rewrite rule so that the old RSS links will continue to work for existing subscribers. </p>
  
  <p>The URLs I am working with are as follow:</p>
  
  <p>Squarespace: <a href="http://example.com/blog/atom.xml" rel="nofollow">http://example.com/blog/atom.xml</a>
  WordPress: <a href="http://example.com/feed/" rel="nofollow">http://example.com/feed/</a></p>
  
  <p>I sed the following code in my functions.php</p>
  
  <pre><code>add_action( 'init', 'ss_feed' );
  function ss_feed()
  {
      global $wp_rewrite;
      $wp_rewrite-&gt;add_external_rule( 'blog/atom\.xml$', 'feed/' );
  } 
  </code></pre>
  
  <p>This has successfully caused my .htaccess file to be updated:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteRule ^blog/atom\.xml$ /feed/ [QSA,L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>
  
  <p>However hitting <a href="http://example.com/blog/atom.xml" rel="nofollow">http://example.com/blog/atom.xml</a> still results in a WordPress 404. Can anyone shed any light on what might be the issue here? Note that I have WP Super Cache enabled and it has a large block inside the .htaccess as well, I can add here if folks think that might be relevant. </p>