joomla 2.5 with multilanguages in apache

General questions regarding the use of languages in Joomla! 2.5.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
gbattinelli
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Dec 12, 2013 1:00 pm

joomla 2.5 with multilanguages in apache

Post by gbattinelli » Thu Dec 12, 2013 3:20 pm

Dear all,
I've to manage a apache web server 2.2 on a windows server.
On this server i've configured, correctly, several sites through virtual host.
I'm not expter about this, but I used correctly virtual host for this issue.
I've a problem now with a joomla 2.5 site that has multilanguage feature.
This is virtual host

Code: Select all

<VirtualHost xx.xxx.xxx.xxx:80>
    ServerAdmin webmaster@dummy-host.localhost
    DocumentRoot "...path../site"
    DirectoryIndex index.php 
    ServerName www.site.it
    ErrorLog "logs/site-error.log"
    CustomLog "logs/site-access.log" common
</VirtualHost>
Everything is ok, if i put a custom index.php in the root of site folder it works correctly.
If i put index.php of my site with multilanguage it automatically adds in the browser /it for italian language, so my site became

from

http://www.site.it

to

http://www.site.it/it

and so it doesn't work, cause in my site folder there isn't it folder, it's added by joomla for italian language, but it's not a physical folder in the system.
I hope to be clear, could you help me?
Thanks
Last edited by imanickam on Fri Dec 13, 2013 2:33 pm, edited 1 time in total.
Reason: Moved the topic from the forum General Questions/New to Joomla! 2.5 to the forum Languages - Joomla! 2.5

 
User avatar
montano
Joomla! Ace
Joomla! Ace
Posts: 1184
Joined: Wed Aug 24, 2005 11:38 am
Location: Dallas, TX
Contact:

Re: joomla 2.5 with multilanguages in apache

Post by montano » Thu Dec 12, 2013 8:26 pm

There are extra steps for multilanguage you may need to implement. You must create a default home page in separate menus for each language. (home language=all, home language=italian, home language=english.) You'll see the flags next to each Main Menu when you've done this correctly. You also need to set up site languages. (actually, do this FIRST) After you've installed the language packs, go to language manager and set up the site languages, 1 for each installed. You also need to publish the language switcher module and language plugins. http://www.ostraining.com/blog/joomla/j ... i-lingual/

gbattinelli
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Dec 12, 2013 1:00 pm

Re: joomla 2.5 with multilanguages in apache

Post by gbattinelli » Fri Dec 13, 2013 2:23 pm

Dear montano,
thanks very much for your reply.
I have done all that you have written but my site doesn't work correctly.
In particular, when i open: www.mysite.it, automatically the browser add "/it" at the end of link (because italian language is favourite site language) , so i have www.mysite.it/it/ and i have "page not found The requested URL /it/ was not found on this server."
If i write www.mysite.it/index.php/it/ (that is adding manually index.php for all other languages and all other site pages) the site works correctly.
Could you help me to solve this problem? Perhaps i have to modify my .htaccess?
Thanks in advance
Giuseppe

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 27552
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: joomla 2.5 with multilanguages in apache

Post by imanickam » Fri Dec 13, 2013 2:44 pm

(a) It looks like the SEO Settings in your Global Configuration as shown below:
Search Engine Friendly URLs: Yes
Use URL rewriting: No

If you set the option "Use URL rewriting" to Yes and use the .htaccess file then the system will not add index.php to the URL.

Review of the following documents would be of help:
http://docs.joomla.org/Search_Engine_Friendly_URLs
http://docs.joomla.org/Enabling_Search_ ... (SEF)_URLs

(b) If you do not want to add the language code it that is the default site language then in the plug-in "System - Language Filter", for the option "Remove URL Language Code" choose the value Yes.

Note:
Suggest reviewing the Multilingual demo-cum-tutorial site http://multilingual-joomla-demo.cloudaccess.net/. Being a demo site you could also log into the site's back-end to see how things are configured.
Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
Joomla! - Global Moderators Team | Translations Coordination Team | Tamil (தமிழ்) Translation Team

Eegan - Support the poor and underprivileged

User avatar
montano
Joomla! Ace
Joomla! Ace
Posts: 1184
Joined: Wed Aug 24, 2005 11:38 am
Location: Dallas, TX
Contact:

Re: joomla 2.5 with multilanguages in apache

Post by montano » Fri Dec 13, 2013 2:58 pm

Do you have the language plugin set to detect IP? If so and you are in Italy, then it will automatically switch you to /it

gbattinelli
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Dec 12, 2013 1:00 pm

Re: joomla 2.5 with multilanguages in apache

Post by gbattinelli » Fri Dec 13, 2013 5:51 pm

Dear imanickam,
thanks for your reply.
Then, in Global configuration i have:
-Search Engine Friendly URLs: YES
-Use URL rewriting : YES
-Adds Suffix to URL: YES.

In Language Filter i have:
-Language Selection for new Visitors.: Browser Settings
-Automatic Language Change:YES
-Menu associations:YES
-Remove URL Language Code: NO
-Cookie Lifetime : YEAR
-Add alternate meta tags: NO

Are correct the parameters?
In Language Filter i have used parameters that are in http://multilingual.demojoomla.com but the the site doesn't work too

@montano: i don't see the option where i can set "detect ip" to yes .
Thanks very much
Regards

User avatar
montano
Joomla! Ace
Joomla! Ace
Posts: 1184
Joined: Wed Aug 24, 2005 11:38 am
Location: Dallas, TX
Contact:

Re: joomla 2.5 with multilanguages in apache

Post by montano » Fri Dec 13, 2013 7:54 pm

I believe
-Language Selection for new Visitors.: Browser Settings
-Automatic Language Change:YES
should be changed

gbattinelli
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Dec 12, 2013 1:00 pm

Re: joomla 2.5 with multilanguages in apache

Post by gbattinelli » Tue Dec 17, 2013 3:19 pm

Dear montano,
i have used your setting but nothing, have you any ideas?
Thanks very much


I just show you real situation, to clearify.
If i run
http://www.calabriaway.it/it/

it doesn't work (it starts automatically italian, but /it folder is not present in filesystem).
If i add
http://www.calabriaway.it/index.php/it/
it works correctly (adding index.php).

Site is configured on win server, with apache web server and virtual host configuration.
Can someone help me?
Thanks

gbattinelli
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Dec 12, 2013 1:00 pm

Re: joomla 2.5 with multilanguages in apache

Post by gbattinelli » Fri Dec 20, 2013 9:25 am

Can any one help me? Thanks very much!

gbattinelli
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Thu Dec 12, 2013 1:00 pm

Re: joomla 2.5 with multilanguages in apache

Post by gbattinelli » Fri Dec 27, 2013 1:58 pm

Can anyone help me?
Thanks

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 27117
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: joomla 2.5 with multilanguages in apache

Post by Per Yngve Berg » Fri Dec 27, 2013 4:55 pm

Is mod_rewrite installed on the server?

Have you renamed htaccess.txt to .htaccess?

 

Locked

Return to “Language - Joomla! 2.5”