 <p>try adding the following to your .htaccess file in the root of your domain</p> <pre><code>RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/[^/]{2}/product/ [NC] RewriteCond %{REQUEST_URI} ^/([^/]{2})/([0-9]+.*)$ [NC] RewriteRule . /%1/product/%2 [L,R=301] </code></pre>