Welcome Guest, Not a member yet? Register   Sign In
Codeigniter multilanguage and adding the language to the url for seo
#1

[eluser]jayapalchandran[/eluser]
Hi, I read this http://stackoverflow.com/questions/13284...ang-arrays

for language inclusion... i wonder how the url will appear for multi languages...

How to show the language in url so that it will also be indexed in search engines...

for example sitenameDOTcom/es or sitenameDOTcom/whoweare/es or something like this and how to sync with the controllers and the urls...
#2

[eluser]eoinmcg[/eluser]
http://codeigniter.com/wiki/i18n_Multi-l...ry_Helper/
#3

[eluser]jayapalchandran[/eluser]
Thank you for the information. that was a complete one and for now i want for one domain. In that page i got this link which could work for me. http://codeigniter.com/wiki/URI_Language_Identifier/. Am i missing anything?
#4

[eluser]jayapalchandran[/eluser]
Hi,
I have installed CI in a subfolder...
i followed http://codeigniter.com/wiki/URI_Language_Identifier/. Am i missing anything?
i get two en/en and a not found page...

for example i have http://localhost/site
when i gave the above as url i get http://localhost/site/en/en

what should i do to rectify this?
#5

[eluser]jayapalchandran[/eluser]
http://codeigniter.com/wiki/i18n_Multi-l...ry_Helper/

What about when the project is installed in a sub folder other than the root folder???

when i did this the MY_language.php redirects to \ and not to base_url…

the redirect reference is relative so if i have localhost/site/en/comment it redirects to localhost/comment .

??? :cheese: Confusednake: >:-( :zip: :question:
#6

[eluser]jayapalchandran[/eluser]
http://codeigniter.com/wiki/URI_Language_Identifier/

This is working for me.
The mistake i did was auto loading my_language.php.
So i got the language abbr two times in the url.

anyway... yet to go a long distance...




Theme © iAndrew 2016 - Forum software by © MyBB