title: Magento URL rewrite append random number in Url
body: <p>I am using magento 1.8.1 previously I had product with duplicate names so there was problem of appending random number at end of url. But now we do not have any duplicate product name in our site we have done some changes in it just as <strong>White Plastic Serving Spoon - 144 per case</strong> and <strong>Fineline White Plastic Serving Spoon - 144 per case</strong> still they are having same urls and appending random number to the url of first product.</p>
  
  <p>I have truncate Core_url_rewrite table and reindex Catalog URL Rewrites still having random number at end of urls.</p>
  
  <p>I have also reffer link 
  <a href="https://magento.stackexchange.com/questions/1565/why-magento-product-url-duplicating">https://magento.stackexchange.com/questions/1565/why-magento-product-url-duplicating</a></p>
  
  <p>and change code in app/code/core/Mage/Catalog/Model/Url.php at line 809 </p>
  
  <p>from</p>
  
  <pre><code>if ($product-&gt;getUrlKey() == '' &amp;&amp; !empty($requestPath)
          &amp;&amp; strpos($existingRequestPath, $requestPath) === 0
      )
  </code></pre>
  
  <p>to</p>
  
  <pre><code>if (!empty($requestPath)
          &amp;&amp; strpos($existingRequestPath, $requestPath) === 0
      ) 
  </code></pre>
  
  <p>Truncate core_url_rewrite table and reindex  Catalog URL Rewrites but I have same problem again.  please provide guidance how can I solve this issue and what I am missing in above steps.</p>