title: How to remove the specific character in between using Apache rewrite rule
body: <p>I have a URL like <a href="http://example.com/abc+def+cde+ndk" rel="nofollow noreferrer">http://example.com/abc+def+cde+ndk</a></p>
  
  <p>Unfortunately the number of capturing groups in the URI (abc, def,cde..) are not in a fixed number.</p>
  
  <p>I tried writing a rule like the below but it is matching and replacing only three groups(two character groups and one + in between).</p>
  
  <pre><code>RewriteCond %{REQUEST_URI} ^/(.*?)(\+{1,})(.*)$ [NC]
  RewriteRule . http://example.com/%1%3 [R=301,L]
  </code></pre>
  
  <p>Example given below:</p>
  
  <p>Source: example.com/abc+def+cde+x+y(n number of strings separated by +)<br>
  Destination Must be: example.com/abccdexy...till n </p>