0

I have a multi site comprising a main J! installation and two secondaries J! installations.

The last twos are installed in the same root directory of the main one, as following

J1: administrator, components, plugins, ..., J2, J3

If I make a link in J1 pointing to a page in J2, the URL in the bar doesn't show in a SEF format. I'm using Joomla 3.6.2.

Could anyone point me to a possible source of the problem?

2 Answers 2

1

I am not sure what you mean with the Multi-sites but 3 installations for 3 sites isn't considered a multi-sites scenario. Probably you have 1 Joomla website installed on the root of your hosting account and 2 more in subfolders.

You haven't specified the conditions and how you are trying to link from the main site to the other 2, what's the purpose and how the links are generated and what is it if any the relationship of the linked sites/pages.

But from what it seems, this is an external link from one website to another. You are leaving Main Joomla to go to another Joomla.

If your link is of Non-SEF format, then when you reach to the other websites the url will still be a Non-SEF one, unless you have any redirections from the Non-SEF to the corresponding SEF one.

So, if you link like this:

/myJoomla2Site/index.php?option=com_content&view=article&id=123&Itemid=123

That's exactly the URL you will end up on the other website.

sh404SEF (paid extension) could help as it auto-creates and auto-redirects all non-SEF URLs to their SEF versions. Note that sh404SEF has to be installed on those sites that the Non-SEF should turn the SEF one - therefore on the site that you are linking to.

You could also use the J! core Redirect component to manually make redirections - or redirect using the .htaccess in the same fashion.

0

Well there are 2 ways.

sub.domain.com or domain.com/sub. If they are not content related and have secondary home pages per install. Then method is good.

I usually use the second and name that folder in an SEO friendly. But that is because the sites are related.

Other than that, more needs to be explained and/or some URL results and what methods you tried already.

8
  • Thanks for your reply. Maybe my question it wasn't clear. I already have the multisite in a form: domain.com, domain.com/sub1, domain.com/sub2. Now, if I go (through a link) from domain.com to domain.com/sub1 what I see in the browser bar is domain.com/sub1/index.php?option=com_mycomponent.... What I'd like to see is domain.com/sub1/mycooladdress, as defined in my router file. What it seems to me is that going from domain to subdomain the router file in my component is ignored.
    – whatsup
    Commented Sep 14, 2016 at 6:57
  • All 3 sites have have SEF friendly URLS and Rewriting on, with the htaccess.txt changed to .htaccess and it is on an apache server? Commented Sep 14, 2016 at 7:01
  • Yes, these are the settings for all the three sites. Each internal link (from domain to domain, or sub to sub) behaves correctly and the urls are SEF friendly. The problem arises only between domain -> subdomain.
    – whatsup
    Commented Sep 14, 2016 at 7:48
  • Do you actually have domain names pointing to the subfolders? When I use my above method, I do not use a separate domain name. I use it as such mainsite.com/subfolder-name and my URL are good. Commented Sep 14, 2016 at 7:54
  • What do you mean with domain names pointing to the subfolders?
    – whatsup
    Commented Sep 14, 2016 at 8:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.