Language redirection
-
zzam
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 1
-
Thank you received: 0
-
-
7 years 11 months ago #5800
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 ?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 11 months ago #5804
by admin
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.131 seconds