title: How to 301 redirect for tags and categories in wordpress?
body: <p>Hi Please sorry if my question was simple or very basic. But please some one tell me how to fix this problem
  i need to redirect all my website pages and post from old url to new one</p>
  
  <p>example :</p>
  
  <pre><code>blog.mysite.com/posttitle.html 
  </code></pre>
  
  <p>301 redirect to </p>
  
  <pre><code>mysite.com/blog/posttitle.html 
  </code></pre>
  
  <p>Already some rule written in htaccess but it only redirects blog posts and pages.
  301 redirection is made only for the blog post and pages. But not for all tags, all Categories and all author pages. the following pages are not redirecting ,</p>
  
  <pre><code>blog.mysite.com/tag/mytagname 
  blog.mysite.com/categories/categoriesname 
  blog.mysite.com/author/authorname 
  </code></pre>
  
  <p>how to redirect this to new site</p>
  
  <pre><code>mysite.com/blog/tag/mytagname 
  mysite.com/blog/categories/categoriesname 
  mysite.com/blog/author/authorname 
  </code></pre>