• Home
  • Get help
  • Ask a question
Last post 10 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67898
All time tickets 10495
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#2489 – How to remove the language code if it is not the main language

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 12 July 2016 22:57 UTC
guillenphoto
Hello,

I am using Joomla 2.5.
My website is a multilingual site with FR as default language and EN as alternate language.

I just updated from sh404SEF 4.3.0.1671 to sh404SEF 4.7.2.3185. I need to make the changes to update to K2 V2.7.0.

All the French URLs are good. There is no change with the old ones.
I have a problem with the English URLs. The language code 'en' appears in the URL. It was not the case with the previous version of SH404SEF. I guess it is du to the use of language filter which just allows to remove the code for the default language.

Is there a way to remove the code en from the URL because I have six hundreds articles in English? I am going to miss all my links in the search engines.

Thank for your help.

PS: I am going to move to Joomla 3.6 in the next few months. Is there the same problem?
Wednesday, 13 July 2016 08:20 UTC
wb_weeblr
Hi

1 - Why are you not using the current version, 4.7.3?

2 - We are not informed of any issue with multilingual sites, and this version, 4.7.2, has been around for a while (though we can provide support only after you updated to current version). So to summarize:
- you have set the language filter plugin to hide language code in default language
- the lang code is still in the URLs?

Have you purged URLs after changing the setting in the language filter? previous URLs (with lang code), needs to be purged so that new ones can be generated in accordance with the new settings.

Also, you are using the native Joomla multilingual system? or Falang or another extension?

Rgds
 
Wednesday, 13 July 2016 11:59 UTC
guillenphoto
Thank you for your quick reply,

The version 4.7.3 is for Joomla 3.
As I mentionned, I am still in version 2.5.28. This is the reason why i am using the version 4.7.2.

The problem I have is not for the default language which is FR. No language code is displayed in the URLs.
The code language is displayed on the alternate language which is En.

I am using the native Joomla multilingual system.

Thanks for your help.
Regards
Thursday, 14 July 2016 11:16 UTC
wb_weeblr
Hi

1 - Sorry about J2.5, I saw it but then forgot about it.

2 -
The code language is displayed on the alternate language which is En.
I am totally confused. Having the language code in 2nd language is totally normal and cannot be avoided. This is how Joomla multilingual system works, it absolutely requires the language code as the first part of the URL to understand which language is is used. If there is no language code, it will always think this is French, the default language. It's always been like that, and there is no workaround.

Rgds
 
Thursday, 14 July 2016 15:09 UTC
guillenphoto
Thank you for your reply.

Having the language code in URLs for the second language has not been always the case.
On my website, I have never had it. You can check our website www.xxxx.com. English is the second language and there is no code in the URLs.
It has been this way for three years. Now I am preparing the migration to the version 3.6 of Joomla. If I do not to lose the 500 links I have to our website, I have to use SH404SEF to define an alias for each page. It will be a lot of work but I have no choice if I do not want to lose years of work.

So having no language code was possible in the past.

Amar Guillen
Thursday, 14 July 2016 15:24 UTC
wb_weeblr
Hi

Having the language code in URLs for the second language has not been always the case.

On my website, I have never had it
That is not technically possible using Joomla native multilingual system. Even if you manually modified each URL in sh404SEF, to remove the code, many things in Joomla would not work.

I guess it is du to the use of language filter which just allows to remove the code for the default language.
This makes me think that you started to enable the language filter plugin only recently? is that so?

If not, and even though we do not provide support for Joomla 2.5,,please provide us with superadmin credentials to your website. You can create a temporary account, and delete it afterwards, but it must have superuser level. I am very curious to see how a Joomla native multilingual site can not have language code in the additional languages (whether sh404SEF or not)

Thanks and regards
 
Thursday, 14 July 2016 15:29 UTC
guillenphoto
Hi,

you are right. I just enable the language switcher plugin when I updated the last version of SH404SEF.
Everything was fine for years. I did not update for a long time.
Now it is time to move to Joomla 3.6 because.

I will create for you a website test. You will able to check what is going on.
I will send you the id and the password.

Amar Guillen
Thursday, 14 July 2016 15:33 UTC
wb_weeblr
Hi

There is nothing to check then. Previously, you didn't have a multilingual site. You only have a single language site, and I assume you have an "english" category, in which you have put your english content. As the site is monolingual, the URLs don't have to have the language codes.

If you move to a real multilingual site (by enabling the language filter), then you must have language code in URLs. That is not a requirement or a constraint of using sh404SEF, but instead one of Joomla multilingual system. There is no way out or around this.

I would suggest you simply update and do not transform your site into a multilingual one. Just keep your existing structure. Or be prepared to have lang code in additional languages.

Rgds
 
Thursday, 14 July 2016 15:39 UTC
guillenphoto
I have a multilingual website.

I have two languages. I need to say that an article is for French or English.
In the head of each article when I check the source with a browser if have "FR-fr" ou "EN-En" depending on the language.

Would you check anyway? It will be helpful.

Amar Guillen
Thursday, 14 July 2016 15:50 UTC
wb_weeblr
Hi

I have two languages.
That does not mean your site is multilingual. Your site is multilingual, in the technical Joomla meaning, when you enable the language filter plugin.

If you don't enable the language filter, Joomla thinks your site is mono-lingual, and doesn't do anything related to languages. Even if you have 10 languages installed on the site. That doesn't matter at all.

Once you enable the language filter, and set 2 or more "content languages" under the Language manager (and a few other things), then Joomla consider your site a multilingual one, and starts acting changing the language for instance.

In the head of each article when I check the source with a browser if have "FR-fr" ou "EN-En" depending on the language.
That doesn't mean anything, there are many ways to achieve that, mostly through the template, or even with a plugin.

I can demonstrate that to you on the current site if you will. Not a on test site with sh404SEF and the language filter. The only interesting thing is to look at the current site.

If you talk about the new site, and you absolutely want to have the language filter, then you will have lang code in the additional language. Again, that is NOT new, not something you can work around, and not something related to Joomla. Just uninstall sh404SEF, enable the lang filter, you'll have the same result.

Rgds
 
Thursday, 14 July 2016 15:59 UTC
guillenphoto
Hi,

I have two languages under the menu Language Manager.

I have attached a screen copy. As you can see on the top right, it is wriiten Multilanguage Status. So I guess I have a multilingual website.

Amar Guillen
Thursday, 14 July 2016 16:04 UTC
wb_weeblr
Hi

So I guess I have a multilingual website.
As explained above, you have a multilingual site when you enable the language filter plugin. You can install all 70 or 80 languages Joomla has, that doesn't make you site multilingual.
t is wriiten Multilanguage Status
No, this is an admin module that's installed on all Joomla sites, and that you can publish, just like any module.

If you enable the language filter plugin, then your site becomes multilingual and Joomla starts modifying your URLs (and other things) by adding lang codes to them. This is how Joomla works, and has been working since Joomla 1.6, which was released on january 10, 2011.

Rgds

 
Thursday, 14 July 2016 20:32 UTC
guillenphoto


Hi,

thank very much for your explanations. Finally, it is very tricky. Having information in the back end did not mean that I was multilingual.

Our discussion has been very interesting because I solved a bug I had for three years. Now The site is ready to be update to version 3.

Thanks for your time and your kindness. You can close the ticket.

All my best
Friday, 15 July 2016 08:23 UTC
wb_weeblr
Hi

You're welcome!

Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

Be sure to also check out wbAMP, our new Accelerated Mobiles pages plugin for Joomla - the next big thing is SEO, direct from Google themselves!

And please feel free to post a review on the JED,it helps and we appreciate it!


Rgds
 
Saturday, 30 July 2016 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.