title: How can I add a url path prefix to my product and category URLs in Magento?
body: <p>I would like my magento category and product URLs to be something like the following:</p>
  
  <pre><code>www.example.com/products/category-slug/
  www.example.com/products/category-slug/product-slug/
  </code></pre>
  
  <p>By default, with Catalog URL rewrites enabled, I get urls like:</p>
  
  <pre><code>www.example.com/category-slug/
  www.example.com/category-slug/product-slug/
  </code></pre>
  
  <p>I want to keep category url rewrites enabled, for the SEO benefits.</p>
  
  <h2>Context:</h2>
  
  <p>I am building a site where I need to integrate Magento and a 3rd party content management system. I am doing this by defining a new default root block for the <code>cms_index_defaultnoroute</code> layout handle that handles non-magento pages by fetching content from the CMS (as described on <a href="http://www.magentocommerce.com/blog/comments/tutorial-integrating-3rd-party-cms-content-within-magento/" rel="nofollow">this magento wiki page</a>). By putting the catalog urls at a different url path, I avoid possible url path collisions with pages managed by the CMS.</p>