• Home
  • Get help
  • Ask a question
Last post just now
Posts last week 82
Average response time last week 34 min
All time posts 68045
All time tickets 10515
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.

#1550 – Homepage url (reopen)

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.
Wednesday, 16 December 2015 17:14 UTC
LidoTours
Hey there, turns out my previous issue wasn't fixed after all, I've tried to manually add the url I wanted as the homepage url but that doesn't work.
Wednesday, 16 December 2015 22:47 UTC
wb_weeblr
Hi

I don't see any way to have /en/index.html as your home page. It's exactly as bad as having /en - which we cannot avoid as Joomla doesn't let us do otherwise, but we normally enforce /en and only that.


Rgds
 
Thursday, 17 December 2015 09:46 UTC
LidoTours
Hi, thanks for the reply,

So.. why not have the homepage url go in the "SEF urls" list so people can edit it to their preferences like any other url? It's strange that we cannot edit it when all others are editable. A similar component for joomla 1.5 (artio joomsef) used to do just that and treat the homepage url just like any other url.

I can edit the homepage for other languages, for example I just edit the "/fr/" entry to "/fr/index.html" and it works just fine, so why keep the main url out of that list and then put a separate button for editing the homepage metas when we could treat it the same way as all other urls?

A lot of websites have different homepage url's. Of course it may not be the best seo tactic around, but that decision should be left to each website's owner. A worse tactic in my opinion is changing a url that's been a certain way and has been indexed for many years.

As an alternative, is there anyway I can edit the source code to achieve this? Even if to have it hardcoded?
Thanks, best regards,
Thursday, 17 December 2015 15:21 UTC
wb_weeblr
Hi

why not have the homepage url go in the "SEF urls" list so people can edit it to their preferences like any other url?
Because the home page has no url, by definition. The home page is http://yoursite.com

can edit the homepage for other languages, for example I just edit the "/fr/" entry to "/fr/index.html" and it works just fine, so why keep the main url ou
Those are not home page(s). Those are just regular URLs, just like any other and can be edited. Whether they happen to be a starting point for the French language or another doesn't matter.

Of course it may not be the best seo tactic around, but that decision should be left to each website's owner.
We actually spent quite a bit of effort making sure this would NOT be possible.
A lot of websites have different homepage url's.
Up until a few years back, this was not uncommon, fortunately, the use of CMS has made this approach disappear.

A worse tactic in my opinion is changing a url that's been a certain way and has been indexed for many years.
In that particular case, no, I think changing the URL would be actually better. You could start building up some authority on your domain name directly instead of spreading it.

As an alternative, is there anyway I can edit the source code to achieve this? Even if to have it hardcoded?
No, that's def. not something that can be done by a simple edit. The closest thing you can do is use the "Home page URL" settings, which is (was) meant 9 years ago for people using splash pages.
I think it'll do what you want, but be aware that this feature has been deprecated, and it'll be removed in the coming months. Fortunately, nobody's using splash pages anymore!

Rgds
 
Thursday, 17 December 2015 16:52 UTC
LidoTours
Well ok then, you're correct in most of what you're saying, but unfortunately you seem to only be considering single language websites. In that respect, I agree fully with what you state as best practices/good or bad for seo/etc.
But that's ok, unfortunately it seems that sh404sef+falang is just not as language friendly and flexible as joomsef used to be for joomla 1.5 in conjunction with joomfish. You could edit all urls, and even choose different domains for different languages for people using different cTLDs for each language.

As for some of your reasoning, I beg to differ in some regards:

Because the home page has no url, by definition. The home page is http://yoursite.com

When developing multi-language websites however, and especially when using Joomla, the homepage is no longer something with "no url" and becomes "/en" (or whatever default language is set)

Those are not home page(s). Those are just regular URLs, just like any other and can be edited. Whether they happen to be a starting point for the French language or another doesn't matter.

If "/en" represents "index.php?lang=en" and "/fr" represents "index.php?lang=fr" I don't really see what are the big difference between those urls that make it impossible to have them editable just like any other url. They are also both homepages, actually. It's just that the English homepage is different than the French homepage.

We actually spent quite a bit of effort making sure this would NOT be possible.

To me this just seems to have been a significant effort into making the component less flexible.

In that particular case, no, I think changing the URL would be actually better. You could start building up some authority on your domain name directly instead of spreading it.

The site and company in question exist for a long time, and has a good deal of authority, not only on the main language homepage, but also all languages homepages. So, not only is that a non-issue, it's the main reason I wish to setup things as they are.

Also, your recommendation would be to make the homepage just "ourdomain.com", right? And the languages "ourdomain.com/lang"?
You should know that Joomla saves the language code to a cookie. So:
- visitor comes in ourdomain.com, cookie gets saved as "en" (the default)
- visitor clicks a url with the "ourdomain.com/fr" language code, cookie gets saved as "fr"
- visitor tries to go back to english, clicks "ourdomain.com". Visitor fails forever until cookie is deleted manually since the url has no language code joomla will just redirect the user back to the french url. There's a reason the language code is there.

But anyway, I digress, I've managed to work around the limitations by:
- Duplicating the url that sh404sef created for a non-default language homepage (for example "/fr"), and change it to "/en/index.html, also editing the non-sef url to change lang=fr to lang=en.
- Adding a 301 redirect at the webserver level redirecting both "/" and "/en" to "/en/index.html"
- Hacking the falang language selector to also use the new homepage.

So that's my problem solved.

Thanks for your time and for the great work with this component.
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.