title: .htaccess redirection rule for WordPress
body: <p>I have moved a WordPress blog from subfolder to a subdomain. </p>
  
  <p>Previous structure : <code>www.sitename.com/fashion-blog</code></p>
  
  <p>New structure is here :
  <code>www.blog.sitename.com</code></p>
  
  <p>The WordPress has been moved to the root directory of sub domain. How can I redirect visitors using <code>.htaccess</code> so that if some one visits old URLs , they will be redirected to new URLs.</p>
  
  <p>For example if some one visits: 
  <code>http://www.sitename.com/fashion-blog/some-post.html</code>
  they should be redirected to its new URl as:
  <code>http://blog.sitename.com/some-post.html</code></p>