Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Redirect to url according to language
Redirect to url according to language
Redirect to url according to language
Hi!
I've got one multi-language-website running and three domains directing to it:
example.org
beispiel.org
exemple.org
Now I want all urls beginning with example.org/de to be redirectet to beispiel.org/de, all urls beginning with example.org/fr to exemple.org/fr, etc. etc.
I don't need any rules depending on the browser language.
For every language I created a different template (based on Helix by Joomshaper).
Somehow I can't setup the correct rules. Can you direct me to the proper instructions?
Thanx
Re: Redirect to url according to language
Hi,
happy to help.
Here's how I would do it:
Rule 1: use the Environment tab to set Page URL "Contains" example.org/de
In the Succeed Action (Actions tab), you can use an intelligent redirect that will simply switch the domain but leave the rest of the URL intact. So set "Next Action" to "Redirect", then use the following in the "Redirect URL..." box:
{scheme://}beispiel.org{:port}{path}{?query}{#fragment}
So that uses the same scheme, port (if used), path, query string and fragment from the original URL, just sends it to a different host.
Rule 2: do similar to rule 1. Detect the Page URL containing example.org/fr and set the redirect to:
{scheme://}exemple.org{:port}{path}{?query}{#fragment}
... continue that for as many languages as you have.
Then the next set of rules will set the template for each of the other sites.
Rule 10: in the Environment tab, in the Domain name(s) box, enter:
beispiel.org, www.beispiel.org
(if there are other domains that use the same template, include them in the list with their www version listed too, if necessary)
Then in the Succeed Action, use the "Set TemplateStyle" dropdown to select the template you want to use for that set of domains.
Save the rule and make a new one like that for each of the different domain/template combinations.
Test!
I trust that's all clear enough - but let me know if you need any further assistance.
Best regards
Stephen
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Redirect to url according to language
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5944
- Posts this week:
- 1
- User Info:
- Total Users:
- 7668
- Newest User:
- heles22597
- Members Online:
- 1
- Guests Online:
- 118
- Online:
- heles22597
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked