Jump to content
  • 0

change language via GET and POST requests?


Question

9 answers to this question

Recommended Posts

  • 0
Posted

I have been using a multilingual whmcs installation (4 languages) for about 10 years, how can I integrate the languages into the Blesta frontend?
Do I need to buy the Besta CMS for this or how can I integrate a language switcher in the Blesta frontend?

### edit ###

oh, sorry for my impatience ?
it seems to work with the BlestaCMS when I add the languages there ...
I will pay more attention on it so I can get it work for my needs

### edit ###

not really ... it works for own content pages only

 

  • 0
Posted

I will try to explain better ...
the language switcher does not change the URL which cause penalizing by google ranking due to "duplicate content w/ the same URL"
so the point here is to solve an SEO problem (duplicate content)
the URL should look like this after switch to another language:
default language:
https://www.mydomain.tld/
FR should be:
https://www.mydomain.tld/fr/
NL should be:
https://www.mydomain.tld/nl/
or
https://www.mydomain.tld/fr/plugin/support_manager/knowledgebase/
https://www.mydomain.tld/nl/plugin/support_manager/knowledgebase/

that would be feasible via a mod_rewrite rule but only if the language switcher shows the string, i.e. changing the language with a GET string ...

is there a possibility to use a function in structure.pdt that adds an iso code (fr) to the redirect_uri?

for example ... if language french was selected

<input type="hidden" name="redirect_uri" value="/fr/" />
<input type="hidden" name="redirect_uri" value="/fr/plugin/support_manager/knowledgebase/" />

the BlestaCMS plugin is working properly it appends the iso code of the language to the url but Blesta always shows the default URL after switching the language.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...