title: Remove parts of the url for a wordpress site
body: <p>I'm triyng to put a server rule on a htaccess to remove some parts of the urls that wordpress generates via permalinks when you work with CPT (custom post types).
  The fact is that I'm not sure that this can work via a simple Rewrite rule.</p>
  
  <p>my urls actually looks like this:</p>
  
  <pre><code>http://www.13mdn.com/newreleases_post/white-stripes.
  </code></pre>
  
  <p>I would like to change to:</p>
  
  <pre><code>http://www.13mdn.com/white-stripes
  </code></pre>
  
  <p>and</p>
  
  <pre><code>http://www.13mdn.com/oldreleases_post/the-who
  </code></pre>
  
  <p>I would like to change to:</p>
  
  <pre><code>http://www.13mdn.com/the-who
  </code></pre>
  
  <p>here is the rules I made on htacces file</p>
  
  <pre><code>RewriteRule ^newreleases_post/(.*)$ $1
  RewriteRule ^oldreleases_post/(.*)$ $1
  </code></pre>
  
  <p>This don't work.</p>
  
  <p>I also Have tried puting the rule via wordpress function <a href="https://wordpress.stackexchange.com/questions/212471/remove-slug-in-the-permalink-for-more-than-one-type-of-custom-post-type">like this</a></p>