title: How to redirect static to dynamic URL's using .htaccess (on Wordpress site)
body: <p>I've taken over a former site/domain, and set up a new site using Wordpress. The WP installation rewrites URL's to static ones, as you'd expect it to.</p>
  
  <p>At the same time I want to preserve the former pages, as they have incoming links. I'm not interested in 301'ing them to "new" pages.</p>
  
  <p>The old URL structure is <code>/index.php?id=123</code>, which I suspect is causing the problem with the WP .htaccess file. For reference, this is what it looks like:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>
  
  <p>I've tried adding the following:</p>
  
  <pre><code>RewriteRule ^([0-9]+).html index.php?id=$1 [R,L]
  </code></pre>
  
  <p>Doesn't work. Just redirects to <code>site.com/?id=123</code> and shows the front page.</p>
  
  <p>I should add that I plan on just adding these new pages as regular static HTML files in the format of 123.html, 321.html etc.</p>
  
  <p>How do I use .htaccess to make this work together with the WP installation and what WP puts into the .htaccess file?</p>
  
  <p>To clarify:</p>
  
  <p>I want to have my <code>123.html</code> static HTML page be <code>index.php?id=123</code>. When you access <code>index.php?id=123</code> it should bring up <code>123.html</code>, but show <code>index.php?id=123</code> in the address bar. If you access <code>123.html</code> it should 301 to <code>index.php?id=123</code>.</p>