× Here you can get community support related to ReDJ.

Language redirection

More
7 years 3 months ago #5800 by zzam
Language redirection was created by zzam
Hi !

First of all, thank you for your great component, and sorry for my bad english...

I need your help to make this condition :

All urls that begin with /fr/ and finish with &lang=en-GB should be automaticaly redirected to the same url construction, begining with /en/ and finish with &lang=en

Exemple :

www.mywebsite.com/fr/?option=com_virtuemart&view=productdetails&virtuemart_product_id=471&virtuemart_category_id=1&lang=en-GB

to

www.mywebsite.com//en/?option=com_virtuemart&view=productdetails&virtuemart_product_id=471&virtuemart_category_id=1&lang=en

Can you help us ? :D

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #5804 by admin
Replied by admin on topic Language redirection
Hi,
create a rule as follow (literally)

From URL: ^/fr/.*lang=en-GB$
To URL: {scheme}://{siteurl}/en/{pathltrim /fr/}{querydropfull lang=en}
Request only: true (checked)


Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds