I've concerted the language cookie into a virtual library so that google indexes different language pages as well. The problem is that I'd like the original URLs to work as well.
The new rule for converting domain.com/lang/xx-product.html is
- Code: Select all
RewriteRule ^([a-ik-zA-Z][a-zA-Z])/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?iso_lang=$1&id_product=$2$4 [L,E]
and the original rule rewriting domain.com/xx-product.html is
- Code: Select all
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]
I had to comment out the old code, cos it also interferes with the new one as the string xx-product is there in both URLs. How can I change the old rule so that it won't interfere with the new one?
I need this cos I want the old links to remain functional as well.
Thanks for helping