aga63 Posted June 16, 2010 Share Posted June 16, 2010 I have added a 301 redirect to the end of the htaccess code. It correctly redirects but the problem is that it redirects to the old dynamic url and not the static url.What do I need to change in this code to redirect to the static url. please look below. The answer to this would be beneficial to the whole prestashop network. as it would solve one issue of duplicate content.lRewriteRule ^lang-([a-z]{2})/([0-9]+)-([a-zA-Z0-9-]).html(.)$ /product.php?id_product=$2&isolang;=$1$4 [L,E,R=301] Link to comment Share on other sites More sharing options...
tomerg3 Posted June 16, 2010 Share Posted June 16, 2010 I'm not sure what you are trying to redirectYou cannot redirect to the friendly URL from the .htaccess file since the full URL of a product / category / cms / manufacturer / supplier pages is stored in the database.I have a redirect module on my site, that redirects all the old (unfriendly) URLs to the current friendly URL, it will also correctly redirect products / categories that were moved / renamed.You can find it in my shop, address is in my signature. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now