× Here you can get community support related to ReDJ.

How to replace language indicator in URL?

More
11 years 10 months ago #1701 by admin
Replied by admin on topic How to replace language indicator in URL?
Sorry but I don't understand your settings.

Could you please post or send a dump of ReDJ table?

And if possible a screenshot of the error you get...

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

More
11 years 10 months ago #1706 by kuk
I wrote an example of my tryouts - see PDF attachment.

Hope this makes it clearer what I mean.

This message has an attachment file.
Please log in or register to see it.

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

More
11 years 10 months ago - 11 years 10 months ago #1708 by admin
Replied by admin on topic How to replace language indicator in URL?
Try this rule:
From URL: /cat-center-publications-en/
To URL: http://{siteurl}/publicweb-dev/en/{pathltrim /publicweb-dev/de/}{queryfull}

The destination MUST BE absolute, not relative...
Last edit: 11 years 10 months ago by admin.

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

More
11 years 10 months ago #1712 by kuk
No, doesn´t work. He have always this loop effect (= repetition of the /publicweb-dev/en/ part) when I use the absolute path rules.

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

More
11 years 10 months ago #1714 by admin
Replied by admin on topic How to replace language indicator in URL?
We could try to avoid loops adding the /de/ in the from:
From URL: /publicweb-dev/de/.*/cat-center-publications-en/
To URL: http://{siteurl}/publicweb-dev/en/{pathltrim /publicweb-dev/de/}{queryfull}

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

More
11 years 10 months ago #1715 by kuk
Not exactly but what works now:

From URL: /publicweb-dev/de/.*/cat-center-publications-en/

To URL: http://{siteurl}/en/{pathltrim /publicweb-dev/de/}{queryfull}

OR

To URL: http://{siteurl}/en/{pathltrim {baseonly}/de/}{queryfull}

Redirect: 301
Request only: Checked

Unfortunately is {baseonly} in "From URL" not possible (for site moving reasons) but I am glad to have a solution now.

Many thanks B)

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

Time to create page: 0.160 seconds