• Home
  • Get help
  • Ask a question
Last post 5 hours 58 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67914
All time tickets 10497
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.

#854 – EN Language URL code erased by sh404sef

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.
Friday, 14 August 2015 12:36 UTC
kobavision
My website has 3 languages:
- www.xxxx.be/nl-be
- www.xxxx.be/fr-be
- www.xxxx.be/en

At the bottom of each page, the language can be changed.
When enabling sh404sef URL optimization, the english language url code is erased. The 3 languages are displayed:
- www.xxxx.be/nl-be
- www.xxxx.be/fr-be
- www.xxxx.be/

The "en" should remain to change to different languages. If a dutch browser wants to change to English, he is clicking English-->www.xxxx.be which will result in www.xxxx.be/nl-be.

How can I solve this issue? English should remain with www.xxxx.be/en
Friday, 14 August 2015 12:40 UTC
wb_weeblr
Hi

Basically, this is correct. If Enlgish is your site default language, you should NOT have the home page accessible both from / and /en.
Even if you have a redirect in place that sends / to /en, having a 301 redirect on your homepage is a terrible thing to do from a SEO standpoint.

That's one of the thing Joomla has wrong when it comes to SEO, and normally sh404SEF does fix that.

Rgds
 
Friday, 14 August 2015 12:55 UTC
kobavision
Hi
Our homepage isn't accesible from / and /en. When you visit / you are redirected depending on your browser language to /nl-be or /fr-be or /en.

The problem is that when I'm a dutch visitor but I want english and I click english language on the website is still remain dutch because the link behind English is www.xxxx.be/ and not www.xxxx.be/en

Regards
Friday, 14 August 2015 12:57 UTC
wb_weeblr
Hi

hen you visit / you are redirected depending on your browser language to /nl-be or /fr-be or /en.
Yes, that is the SEO problem. You should not be redirected, and there should never be a /en accesible to search engines on your site. Anywhere.
The English version should be accessible from /, without a language prefix, otherwise you're creating duplicate content for your most important page, the homepage.

Rgds
 
Friday, 14 August 2015 13:03 UTC
kobavision
Okay I understand. What should than be the optimal settings for language filter and switcher so a dutch browser will get automaticly dutch when visiting www.xxxx.be/ but still have the possiblity to switch to english?
Friday, 14 August 2015 13:09 UTC
wb_weeblr
Hi

Remove the lang code for default language, in the Joomla Language filter and you should be good.

(You'll need to purge URLs in sh404SEF so that new ones are created).

Rgds
 
Friday, 14 August 2015 13:20 UTC
kobavision
This doesn't work. I removed the code in language switcher (no possibility to do so in language filter).
I have a dutch browser, when I'm on www.xxxx.be/nl-be and click on english below (www.xxxx.be) is get back to www.xxxx.be/nl-be

Other settings?
Language filer:
Language Selection for new Visitors -->Browser Settings
Automatic Language Change --> No
Item Associations -->Yes
Remove URL Language Code -->No
Cookie Lifetime --> Year
Add Alternate Meta Tags -->No
Monday, 17 August 2015 09:42 UTC
wb_weeblr
Hi

(no possibility to do so in language filter).
Yes, you can. You still have it set to no:

Remove URL Language Code -->No


Please se to yes, and revert whatever changed you made to the Language switcher module, because that module does NOT have any setting related to removing the language code on default language.

Rgds
 
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.