title: Redirect of URL with parameters to URL without -- plus Wordpress
body: <p>I have rebuilt a website that used some custom php to serve up individual store pages with urls like this:</p>
  
  <pre><code>http://thedomain.com/storedetails.php?storeNum=1
  </code></pre>
  
  <p>The new site is powered by Wordpress, and each individual store will live in a named subdirectory, like this:</p>
  
  <pre><code>http://thedomain.com/stores/gothamcity
  </code></pre>
  
  <p>I have been trying solutions I have found on stackoverflow that all seem to be variations on this: <a href="https://stackoverflow.com/questions/7277154/301-redirect-of-old-url-with-parameters-to-a-path-without-parametes">301 Redirect of old url with parameters to a path without parametes</a></p>
  
  <p>Here's an example:</p>
  
  <pre><code>RewriteCond %{QUERY_STRING} ^storeNum=18$ [NC]
  RewriteRule ^/storedetails\.php$ http://www.thedomain.com/stores/gothamcity? [L,R=301]
  </code></pre>
  
  <p>But so far nothing works. I continue to get "page not found" 404 error pages in Wordpress.</p>
  
  <p>My best guess is that something in Wordpress's part of the .htaccess is throwing this off? Here's what they include:</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>Can anyone help?</p>