This get me crazy i spent the last day search for solution for this issue but until no i can’t find any my problem is as follow
i have this site http://www.yadonia.com/ that have only one language (English)
the client need to add Arabic language to the site as a normal Joomla (i did that about 100 time for other sites on the same server) i install the new language and activate all the required plugin and add default menu for each language and configure the Language Filter to hide the default Language Code from the url but when i go to the site to test the installation i notice that the url look like
http://www.yadonia.com/?lang=en or http://www.yadonia.com/?lang=ar
and event if i try to but http://www.yadonia.com/en it’s redirect me to http://www.yadonia.com/?lang=en
i can’t leave the site with this issue so i stopped the plugins and download the site to my local server and run i and it work with no problem i didn’t change any code and it’s work as i want so the url for English is http://www.yadonia.com/
and for Arabic is http://www.yadonia.com/ar
Note: i have about 20 site with 2 language on the same server and all of them is work with no problem
any idea how to solve the problem on the online server or at least where should i start search
==========
now i’m 100% sure that it;s host problem (not server) just this host
coz i copy all the database and the folders to new host on the same server and it’s work with no problem
2
Answers
It looks like a
.htaccess
file issue. Rename the file to_.htaccess
and try.One last option: try to disable
mod_sec
for this domain in-order to test if its related. If related, check the logs to see whichmod_sec
rule.I am sure that the problem occurs because you are not working properly the friendly url.
Activate them using the documentation of Joomla.
https://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs
When you go to “Extensions->language->language and content” and you click on “URL Language Code” You can see a picture like this …
![enter image description here](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
You have to focus your efforts on SEF enabled, so the suffix is correct.