• Home
  • Get help
  • Ask a question
Last post 14 min ago
Posts last week 81
Average response time last week 4 hours 29 min
All time posts 67916
All time tickets 10499
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.

#1327 – Simple Mutlingual URL : How to get it

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, 06 November 2015 08:45 UTC
adrien5555
 Hi guys,

first, bravo for your great product.

I'm struggling a little to get the URLs I want, eg :

for the site :
mydomain.com/en/page-of-the-site-in-english
mydomain.com/fr/page-of-the-site-in-french

for the blog section :
mydomain.com/blog/en/blog-post-in-english
mydomain.com/blog/fr/blog-post-in-french

(this could also be acceptable with interverted URLs like ..../en/blog/....and .../fr/blog/.....)


how to configure sh404SEF to do this please ?

thank you !
Adrien
Friday, 06 November 2015 08:53 UTC
wb_weeblr
Hi

mydomain.com/blog/en/blog-post-in-english
Joomla cannot accept such URLs (not an sh404SEF issue).

mydomain.com/en/page-of-the-site-in-english

mydomain.com/fr/page-of-the-site-in-french
And what do you get currently?

Rgds
 
Friday, 06 November 2015 09:20 UTC
adrien5555
Hi ,
thx for your quick reply.

For the site pages, I get :

http://xxxx.net/en/english/cro-services
http://xxxx.net/fr/french/services-cro

where you should know that 'french' and 'english' are top categories I created in Joomla.

Regarding blog pages :


mydomain.com/blog/en/blog-post-in-english
Joomla cannot accept such URLs (not an sh404SEF issue).



is
mydomain.com/en/blog/blog-post-in-english
mydomain.com/fr/blog/blog-post-in-french

possible ?

How to structure my categories and sh404SEF config to get to this result ?

Now my categories are :
-english
--blog
-french
--blog

thx !
Friday, 06 November 2015 10:25 UTC
wb_weeblr
Hi

1 -
where you should know that 'french' and 'english' are top categories I created in Joomla.
sh404SEF uses element titles and categories titles to build URLs (so that they are independant of menu items and avoid duplicate content issues).

So if you categories are called "English" or "French" they will end up in the URLs. There are settings in the "Extensions" > "Joomla" section of sh404SEF to decide which categories are included or not in the URLs, so that should help.

2 - The real problem is to use "English" or "French" as content categories. The categories should reflect the products or articles topics, not the language. Language is already taken care of by the language code in the URL.

3 - To be clear about Joomla: it will only work with the first part of the URL being the language code. So on a multilingual site, your URLs will always be /en/xxx or /fr/yyy.

The only exception is that you can choose to NOT have a language code in the default language links. This is all selected in the Joomla Language filter plugin.

Now my categories are :

-english

--blog

-french

--blog
There's no need for the top level categories, at least in the URL. So if you want to keep those french and english top level categories, at least remove them from the URLs (see settings in sh404SEF mentioned above).

Rgds
 
Friday, 06 November 2015 11:35 UTC
adrien5555
Thx, that is super clear now.

For now, I'll just set up URLs to include "only last" category. Works great.

A nice feature would be : the ability to set different settings depending on categories.

For instance, if I want blog URLs to display the last category, and other URLs to display no category.

I guess the only option I have, if I want to customize a few URLs, is to use sh404SEF aliases ?
Like the homepage for french version, for instance.
Friday, 06 November 2015 11:37 UTC
wb_weeblr
Hi

I guess the only option I have, if I want to customize a few URLs, is to use sh404SEF aliases ?
No, aliases are for redirecting. If you want to modify a URL, you just click on it in the URL manager and modify it.

Like the homepage for french version, for instance.
You can't really modify a home page, that'd most likely bring in a lot of trouble. Why do you want to modify it?

Rgds
 
Friday, 06 November 2015 12:09 UTC
adrien5555
No, aliases are for redirecting. If you want to modify a URL, you just click on it in the URL manager and modify it.


Oh great, I get the difference. These changes are saved when purging, just like aliases ?


You can't really modify a home page, that'd most likely bring in a lot of trouble. Why do you want to modify it?


Problems come with the "language switcher" module, from the homepage :

http://xxxx.net/en/ displays the native english language
http://xxxx.net/fr/ displays the french homepage

but from homepage, either english or french, clicking the language swith will send any visitor to :

http://xxxx.net/fr/french/accueil-pixel
or
http://xxxx.net/en/english/home-pixel

wich is not desired.

That's why I wanted to create aliases.

Do I just need to change the URL ? Or what's a better solution ?
Friday, 06 November 2015 13:11 UTC
wb_weeblr
Hi

That's why I wanted to create aliases. Any other better solution maybe ?
No actual solution, but as always the case, the first requirement is to actually understand and fix the problem.

Those URLs should not be like this, so we need to know why those wrong URLs are used and fix that.

Could you 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.

Thanks and regards
 
Friday, 06 November 2015 14:46 UTC
adrien5555
ok, thanks very much for your help.

here are credentials :

http://xxxx.net/administrator/
xxxx
xxxx
Friday, 06 November 2015 17:47 UTC
wb_weeblr
Hi

It was caching. You had the switcher module content cached. I disabled caching, purged URL and looks good now.

Rgds
 
Friday, 06 November 2015 19:34 UTC
adrien5555
Oh I see, another hidden cache !

Amazing, thank you, I'm all set up with sh404SEF now :)

have a good weekend

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