title: .htaccess redirect - does this work for all anchor links in page?
body: <p>I am porting a lot of content from flat file site to Wordpress and have my .htaccess redirect for each page as follows:</p>
  
  <pre><code>redirect 301 /01-chapter1.html  http://www.mydomain.com/section1/chapter-1/
  </code></pre>
  
  <p>Within this content there are a number of anchor links defined as follows: </p>
  
  <pre><code>&lt;a name="106"&gt;Link 106&lt;/a&gt;
  </code></pre>
  
  <p>My question is, will the redirect above also handle these anchor links so that old page anchor:</p>
  
  <pre><code>http://www.mydomain.com/01-chapter1.html#106
  </code></pre>
  
  <p>gets redirected to new page anchor:</p>
  
  <pre><code>http://www.mydomain.com/section1/chapter-1/#106
  </code></pre>
  
  <p>Hope it does and that I do not have to implement separate redirects for thousands of anchors :(</p>
  
  <p>Many thanks in advance for your advice.</p>
  
  <hr>
  
  <p>ANSWER</p>
  
  <p>Well I implemented the original redirect I posted:</p>
  
  <pre><code>redirect 301 /01-chapter1.html  http://www.mydomain.com/section1/chapter-1/
  </code></pre>
  
  <p>Tested this FF/IE/Chrome and for whatever reason the redirect seems to be behaving exactly as I hoped without any additional parameters.</p>
  
  <p>external links to:</p>
  
  <pre><code>http://www.mydomain.com/01-chapter1.html#106
  </code></pre>
  
  <p>are redirecting perfectly to the in page anchor links:</p>
  
  <pre><code>http://www.mydomain.com/section-1/chapter-1/#106
  </code></pre>
  
  <p>Thanks for the good advice anyway but so far so good!</p>