title: Using .htaccess to change directory in url
body: <p>I am trying to change the url that is displayed in the address bar from <code>mysite.com/blog/wedding-hair/</code> to <code>mysite.com/services/wedding-hair/</code> using <code>.htaccess</code>.</p>
  <p>Using answers from:</p>
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/8713319/assigning-different-name-to-existing-folder-in-url-in-htaccess">https://stackoverflow.com/questions/8713319/assigning-different-name-to-existing-folder-in-url-in-htaccess</a></p>
  </li>
  <li><p><a href="https://stackoverflow.com/questions/1264773/rewrite-a-folder-name-using-htaccess">rewrite a folder name using .htaccess</a></p>
  </li>
  <li><p><a href="https://stackoverflow.com/questions/10071404/replace-directory-name-in-url-with-another-name">Replace directory name in url with another name</a></p>
  </li>
  </ul>
  <p>I added to the <code>.htaccess</code> file. Here is the <code>.htaccess</code> file, I added the last rewrite rule:</p>
  <pre><code>Options -Indexes
  RewriteEngine on
  RewriteCond %{HTTP_HOST} ^mysite.com$
  RewriteRule ^/?$ &quot;http\:\/\/www\.mysite\.com&quot; [R=301]
  RewriteRule ^blog/(.*)$ /services/$1 [L]
  </code></pre>
  <p>the non-www redirect works but not the blog-services rewrite. I thought maybe I had the directory names reversed but changing them around doesn't work either. I have tried adding and removing /'s around the directory names in all of the different combinations. I tried adding</p>
  <pre><code>RewriteCond %{THE_REQUEST} ^GET\ /blog/
  </code></pre>
  <p>before my RewriteRule. Nothing I Have tried has worked, the displayed url remains <code>mysite.com/blog/wedding-hair/</code></p>
  <p>I am sure this is pretty straight forward for someone but I am unable to get this correct. Any help would be appreciated.</p>
  <p>When I was working on this yesterday I didn't think about the fact that the blog directory is a WordPress install. Here is the .htaccess file that is in the blog directory:</p>
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /blog/
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /blog/index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  <p>I have tried adding my RewriteRule in this file but still no joy.</p>