title: How to disable simple product URL rewrite management by Magento?
body: <p>I have 3 online stores running on a single Magento installation. </p>
  
  <p>They share over 10.000+ SKU's (I've set them up as simple products), but the only products visible on the frontend are the Grouped Products for each store (which have the SKU's associated to them).</p>
  
  <p>As such, my URL rewrite table is very heavy and while checking Varien Profiler I came across "mage::dispatch::routers_match" which is taking more than 5 seconds to complete. I reckon this is because it's such a large table. So that brings me to my question:</p>
  
  <p>How do I specify which URL's I wan't Magento to rewrite. Is there anyway I can tell it to NOT rewrite simple products URLs? That alone would bring down the table to 1/3rd.</p>
  
  <p>PS: Magento CE 1.7.0.2</p>
  
  <p>Edit:</p>
  
  <p>Thank you Tobias for pointing me in the right direction. I went to app/code/core/Mage/Catalog/Model/Url.php and edited the function <code>refreshProductRewrites</code> to this:</p>
  
  <pre><code>foreach ($products as $product) {
          if($product-&gt;getTypeId() == "simple"){
              continue;
          }
          else {
          $this-&gt;_refreshProductRewrite($product, $this-&gt;_categories[$storeRootCategoryId]);
          foreach ($product-&gt;getCategoryIds() as $categoryId) {
              if ($categoryId != $storeRootCategoryId &amp;&amp; isset($this-&gt;_categories[$categoryId])) {
                  if (strpos($this-&gt;_categories[$categoryId]['path'], $storeRootCategoryPath . '/') !== 0) {
                      continue;
                  }
                  $this-&gt;_refreshProductRewrite($product, $this-&gt;_categories[$categoryId]);
              }
          }
      }
      }
  </code></pre>