title: Redirect .htaccess through partial modification of the link in its middle
body: <p>please show me the right way. I`m trying to redirect </p>
  
  <p>from</p>
  
  <pre><code>example.com/home/&lt;anything&gt;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>example.com/home-3/&lt;anything&gt;
  </code></pre>
  
  <p>It still goes very difficult to me with RegExp, moreover in <code>.htaccess</code> conditionals.</p>
  
  <p>Please show me the correct way to do this</p>
  
  <p>My basic thoughts didn't play well:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
   RewriteEngine On
   RewriteCond %{REQUEST_URI} !/home-3/ [NC]
   RewriteRule (.*)/home/(.*) $1/home-3/$2
   &lt;/IfModule&gt; 
  </code></pre>
  
  <p>it does nothing with:</p>
  
  <pre><code>https://example.com/home/information/work
  </code></pre>
  
  <p>but must become</p>
  
  <pre><code>https://example.com/home-3/information/work
  </code></pre>
  
  <p>However php-redirect would be done properly with:
  (<code>header.php</code>)</p>
  
  <pre><code>IF ( ($do_redirect=true) == true) {{{
              $address=$_SERVER['REQUEST_URI'];
  
              $addrstart = substr($address,0,15);
              $sch = strpos($addrstart,'home/');
  
  
              if ($sch!== false) {
                  $ndl = 'home/';
                  $nw = 'home-3/';
                      $rezz = str_replace($ndl,$nw,$address);
                      $address = $rezz;
  
                      header("Location: https://egf.ru/".$urrr);
                      die;
              } 
  
  }}}
  </code></pre>
  
  <p>So I'm trying to do the same through <code>.htaccess</code> instead of  header location.</p>
  
  <p>Added:
  <a href="https://i.stack.imgur.com/bUGDk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bUGDk.png" alt="ftp"></a>
  <a href="https://i.stack.imgur.com/qeyBm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qeyBm.png" alt="ht1"></a>
  <a href="https://i.stack.imgur.com/cf5El.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cf5El.png" alt="ht2"></a>
  <a href="https://i.stack.imgur.com/4lVo1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4lVo1.png" alt="ht_tries_out"></a>
  I tried every of this combination through private tab with closing a singlelast private window and reopening every time.</p>
  
  <p>I also tried to check one of Redirect at  ht2 image - it also gave me 404/</p>
  
  <p>I think 
  OR htaccess somehow really doesnt work with wordpress (0_o)
  OR Ihave lost something fundamental/</p>
  
  <p>So being reinspired to recheck one time more 
  Ive done next:
  Uncommented all of the variants:
  <a href="https://i.stack.imgur.com/aaYys.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aaYys.png" alt="totAL war"></a></p>
  
  <p>and it does also nothing (404) at home/.. addressing
  all home-3 are working fine</p>
  
  <p>update 
  in 7 minutes server fall down
  ftp no response, site egf.ru no response.
  last htacces modification is next:
  <a href="https://i.stack.imgur.com/D4lNw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D4lNw.png" alt="last one htaccess modification "></a>
  looks like no cyclic recursion 
  all htaccess checkers says no errors.</p>
  
  <p>Don`t know is it providers fault or mine.</p>