Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

JoomSEF: don't integrate main language code in URL
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: JoomSEF: don't integrate main language code in URL

JoomSEF: don't integrate main language code in URL 16 years, 9 months ago #3905

Hello,

I'm running a multi-language (italian/english) site with Joomla! 1.0.15, Joom!Fish 1.8.2 and free JoomSEF 2.2.6.

I would like to configure JoomSEF in such a way that the component doesn't integrate the language code in the URLs for the \"main\" language (italian), but just for the other languages, e.g. www.example.com/italian_page and www.example.com/en/english_page.

The nearest I could get was with these options:

Language integration -> include in path
Always use language -> yes
Translate URLs -> yes

But this way, the language code is used for all URLs, italian ones too: www.example.com/it/italian_page.

Is there a way to configure JoomSEF in such a way that the language code is not integrated in italian URLs? Something like:

Language integration -> include in path, except for \"it\"

Is this possible with JoomSEF? I'm open to php changes in the code too :)

Re:JoomSEF: don't integrate main language code in 16 years, 8 months ago #3951

hi, some time ago I have been fighting against the same problem: simply put it's not possible with the current architecture of JoomSEF: you get language codes always or never, no grey zone afaik.

I'm almost ok with this limitation of JoomSEF, because I use it for an intranet deployment of joomla, and I didn't really care nor changing the urls neither how they would look like after. I understand however that in a public deployment, changing existing urls can be a disaster (broken links from outside, loss of google rank, the list goes on)

you can try circumventing the problem: for example, introduce custom JoomSEF redirects for italian language, that map your current urls (domain/page) to the new ones (domain/it/page). you need one for each existing page. enable JoomSEF language codes and it should work.

please note that doing so, you commit yourself to using just the \"new\" (domain/it/page) urls in the future. in fact when you will add a content, news or whatever, I'm sure you don't want to remember adding a new custom JoomSEF redirect each time, do you? for this reason, you also want to update all your internal links to the new version.

it's messy, and will break under conditions that don't come to my mind right now, but I'm afraid you can't do much better.
  • Page:
  • 1
User Login Empty