title: How to remove Post ID from posts and then redirect to new URL?
body: <p>I just changed the permalink structure of my wordrpress based blog. Previously it had the permalink structure like this</p>
  
  <p><a href="http://www.mysite.com/sample-post-example/2345/" rel="nofollow">http://www.mysite.com/sample-post-example/2345/</a></p>
  
  <p>The numbers at the end of the url were automatically generated by wordpress software. In fact these numbers are post_id. Now I have this url structure.</p>
  
  <p><a href="http://www.mysite.com/sample-post-example/" rel="nofollow">http://www.mysite.com/sample-post-example/</a></p>
  
  <p>Now the problem is that the individual posts are available under both url structures.</p>
  
  <p>Is there anyway to redirect (301) old URLs to new url after removing the Post_ID present at the end of the old URL??</p>