× Here you can get community support related to ReDJ.

Removing old language codes

More
11 years 6 months ago #1066 by dhqq
Removing old language codes was created by dhqq
My site used to use Joomfish and had a number of languages in urls such as /en/, /en-pem/, /fr/, etc. Now it doesn't and I'd like to remove the language part of the url when a user arrives via from an old link elsewhere.

Using /en/ as an example, how would I go about that?

Thanks!

David Harrison

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

More
11 years 6 months ago #1070 by admin
Replied by admin on topic Removing old language codes
Hi David,
if you need a rule that removes ONLY the initial language code and leave ALL the rest as is, is possible, but I suggest a rule for any language code. For english /en/ the rule is:
From URL: ^/en/
To URL: {scheme}://{host}{pathltrim /en}{queryfull}
Request only: true

Kind regards,
Luigi

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

More
11 years 6 months ago #1071 by dhqq
Replied by dhqq on topic Removing old language codes
Thanks Luigi, I will give that a try. There are only a few legacy languages to remove from URLs so two or three of them will be fine with me.

Best regards,

David

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

More
11 years 6 months ago #1074 by admin
Replied by admin on topic Removing old language codes
Ok,
let me know...

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

More
11 years 6 months ago #1075 by dhqq
Replied by dhqq on topic Removing old language codes
It worked first time.

Grazie mille!

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

More
11 years 6 months ago #1076 by admin
Replied by admin on topic Removing old language codes
Happy to hear this...

Prego, è stato un piacere!!! :)

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

Time to create page: 0.150 seconds