title: htaccess redirect rule for changing part of url
body: <p>I am trying to write an htaccess conditional redirect rule, but with no luck so far.</p>
  
  <p>How can I use an htaccess redirect to redirect</p>
  
  <pre><code>http://www.domain.tld/en/oldpath/something/
  http://www.domain.tld/en/oldpath/somethingelse/
  </code></pre>
  
  <p>to, respectively</p>
  
  <pre><code>http://www.domain.tld/en/newpath/something/
  http://www.domain.tld/en/oldpath/somethingelse/
  </code></pre>
  
  <p>?</p>
  
  <p>Is there a rule I can use to redirect "oldpath" to "newpath" whatever part of an url precedes or follows it?</p>
  
  <p>Thank you for your help.</p>