title: htaccess - How to redirect old urls to new pretty ones?
body: <p>I'm using opencart seo urls and they work fine. The problem is that I can access the old url too which results in duplicate content.</p>
  
  <p><strong>Example:</strong></p>
  
  <p>My new SEO Url is:
  <a href="http://site.com/blue-widgets" rel="nofollow">http://site.com/blue-widgets</a></p>
  
  <p>The problem is that I can access the old one too and I'm afraid to get penalized by the search enghines for having duplicate content:
  <a href="http://site.com/index.php?route=product/category&amp;path=113" rel="nofollow">http://site.com/index.php?route=product/category&amp;path=113</a></p>
  
  <pre><code>RewriteBase /
  RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
  RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
  RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
  </code></pre>