title: Use .htaccess to redirect old URLs to new URLs, which are moving from a subdirectory to root
body: <p>I have an old version of the website in pure html at <code>/</code> and I have WordPress (the new website) installed at <code>/m/</code>. That's where the files are, but I want it to load at <code>/</code>.</p>
  
  <p>So, I want to first make <code>/m/some-query</code> to load as <code>/some-query</code>.</p>
  
  <p>I think this will work, from what I've read, right?</p>
  
  <pre><code>RewriteEngine On
  
  RewriteCond %{REQUEST_URI} !^/m/.*$
  RewriteRule ^(.*)$ /m/$1 [QSA,L]
  </code></pre>
  
  <p>Then secondly, I want to specify a series of URLs: <code>/old-url-1</code> to 301 redirect to <code>/new-url-1</code>. So that when search engines visit old pages, they are redirected to the new equivalents.</p>