2

Just noticed that if I search for blog post titles in Google, I get both SEF and non-SEF results shown. It only appears to happen to articles that don't have a menu item. Has anyone else experienced this? and moreover, what can I do to prevent it from happening? Cheers, Philip enter image description here

What's more, the non-SEF url does not work

Joomla! 3.8.5 PHP 7.0.27

1

You have to add canonical link - the prefered URL. You can use an extesion like RSSeo from RSJoomla or just do it with override.

Robert Went has a post - in english, where you can see how to use the Custom Fields to add Canonical URLs

I have a more detailed post on My Blog. It's danish, but you can let Chrome translate it.

1

Three tips that I use:

1) Make sure you have a sitemap that's submitted to Google Webmaster Tools (and Bing's Webmaster Tools as well) and make sure that this sitemap is using all the correct URLs and non of the incorrect ones.

2) Add a plugin to Joomla that allows you to set (or have it be set automatically) a canonical meta element for your articles. Google and other sites will use that canonical value while indexing.

3) Periodically check Webmaster Tool for links that didn't get corrected from those first two tips. For any you find, set up a permanent redirect (ie, HTTP Code 301 redirect) from the non-SEF URL to the permalink/correct URL. Once Google starts hitting the redirect it'll update its index to go to the new location instead of the old one.

What's more, the non-SEF url does not work

This is because it's loading that article through your "homepage" menu item (because no other Itemid is set). Your template happens to be set up so that when the template is loading the homepage the template does not attempt to load the Joomla "component" block (ie, there is no <jdoc:include type="component" /> set). Without the "component" block you're not going to see your article on the page.

  • It's not a permalink, but canonical – KlintWeb Feb 17 '18 at 6:25
  • Ah! Yes, you are right @KlintWeb. My Friday afternoon brain wasn't working. :) – Drew G Feb 20 '18 at 18:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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