title: htaccess to rewrite wordpress subdirectory with permalinks to root
body: <p>I have a wordpress site installed in the directory "wp". I want to keep it in that folder for maintenance purposes. Wordpress gives the option to create a htaccess for permalinks. You can see that code (which works) below. </p>
  
  <p>What I want is a rewriterule so - to visitors - the site appears to be in the root. I've to change the rewritebase, but that didn't work. </p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /wp/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /wp/index.php [L]
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /wp/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /wp/index.php [L]
  &lt;/IfModule&gt;
  </code></pre>