Page 1 of 1

joomla 2.5 with multilanguages in apache

Posted: Thu Dec 12, 2013 3:20 pm
by gbattinelli
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

Re: joomla 2.5 with multilanguages in apache

Posted: Thu Dec 12, 2013 8:26 pm
by montano
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/

Re: joomla 2.5 with multilanguages in apache

Posted: Fri Dec 13, 2013 2:23 pm
by gbattinelli
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

Re: joomla 2.5 with multilanguages in apache

Posted: Fri Dec 13, 2013 2:44 pm
by imanickam
(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.

Re: joomla 2.5 with multilanguages in apache

Posted: Fri Dec 13, 2013 2:58 pm
by montano
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

Re: joomla 2.5 with multilanguages in apache

Posted: Fri Dec 13, 2013 5:51 pm
by gbattinelli
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

Re: joomla 2.5 with multilanguages in apache

Posted: Fri Dec 13, 2013 7:54 pm
by montano
I believe
-Language Selection for new Visitors.: Browser Settings
-Automatic Language Change:YES
should be changed

Re: joomla 2.5 with multilanguages in apache

Posted: Tue Dec 17, 2013 3:19 pm
by gbattinelli
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

Re: joomla 2.5 with multilanguages in apache

Posted: Fri Dec 20, 2013 9:25 am
by gbattinelli
Can any one help me? Thanks very much!

Re: joomla 2.5 with multilanguages in apache

Posted: Fri Dec 27, 2013 1:58 pm
by gbattinelli
Can anyone help me?
Thanks

Re: joomla 2.5 with multilanguages in apache

Posted: Fri Dec 27, 2013 4:55 pm
by Per Yngve Berg
Is mod_rewrite installed on the server?

Have you renamed htaccess.txt to .htaccess?