Code: Select all
#contact_us.php - contact us
RewriteRule ^([a-z]{2})/contact-us$ contact_us.php?language=$1 [L,QSA]
--> mydomain.com/nl/contact-us -> perfect!
I've added the same rule for a custom page:
Code: Select all
#all_products.php - all products
RewriteRule ^([a-z]{2})/all-products$ all_products.php?language=$1 [L,QSA]
The page works, but it does not redirect.
--> mydomain.com/all_products.php
Does not redirect to: mydomain.com/nl/all-products (which does work after the added line in .htaccess)
Also, it does not change the links, whereas the "links" from anywhere on the site for contact_us.php show up as wanted, like: mydomain.com/de/contact-us or mydomain.com/uk/contact-us depending on which language you're looking at the site. Cool feature by the way
What am I missing to get this functionality for non-standard OScommerce pages?