title: Redirect duplicate url in htaccess
body: <p>I have duplicate urls and i need to do some redirection in htaccess</p>
  
  <p>Examples:</p>
  
  <p>Original Urls are :</p>
  
  <pre><code>www.mywebsite.com/listofgames/pacman.html  
  www.mywebsite.com/listofgames/nintendo.html  
  www.mywebsite.com/listofgames/snake.html  
  </code></pre>
  
  <p>I have about 1000 games name</p>
  
  <p>Example of duplicate urls :</p>
  
  <pre><code>www.mywebsite.com/listofgames/1/pacman.html
  www.mywebsite.com/listofgames/1521/pacman.html
  www.mywebsite.com/listofgames/52154/pacman.html
  www.mywebsite.com/listofgames/abc/pacman.html
  www.mywebsite.com/listofgames/opq/pacman.html
  www.mywebsite.com/listofgames/opq/1/2/35/pacman.html
  www.mywebsite.com/listofgames/154/3562/snake.html
  www.mywebsite.com/listofgames/2541/snake.html
  www.mywebsite.com/listofgames/524/snake.html
  www.mywebsite.com/listofgames/absc/gtar/15/nintendo.html
  www.mywebsite.com/listofgames/nije/nintendo.html
  </code></pre>
  
  <p>I need to redirect them to original urls  </p>
  
  <p>So  </p>
  
  <pre><code>www.mywebsite.com/listofgames/anynumber/mygamesname.html  
  www.mywebsite.com/listofgames/anyword/mygamesname.html  
  www.mywebsite.com/listofgames/anyword/anynumber/anyword/mygamesname.html
  </code></pre>
  
  <p>Must be redirected to</p>
  
  <pre><code>www.mywebsite.com/listofgames/mygamesname.html
  </code></pre>