Jump to content

How set a seo friendly url redirect from all your dynamic urls to the new static urls? need some assistance


aga63
 Share

Recommended Posts

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.l

RewriteRule ^lang-([a-z]{2})/([0-9]+)-([a-zA-Z0-9-]).html(.)$ /product.php?id_product=$2&isolang;=$1$4 [L,E,R=301]

Share this post


Link to post
Share on other sites

I'm not sure what you are trying to redirect

You 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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More