• Home
  • Get help
  • Ask a question
Last post 18 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67731
All time tickets 10466
All time avg. posts per day 21

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.

#7750 – Alias names that are not clicked from menu do not work

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, 05 May 2021 04:51 UTC
zechris

I was using the built in joomla sef to remove index.php from the URLs. This was working well.

I installed sh404SEF to also remove component information. When I did this, it worked as expected, but aliases links that I included around the site can no longer find the pages. The only links that work are the ones in menus.

For example:

https://xxxx.com/index.php/terms-of-service with Joomla SEF became https://xxxx.com/terms-of-service

This is what I wanted. I have the SEF link at the bottom of my site. When I enable sh404SEF, this link becomes broken along with any other static alias links.

I had to disable sh404SEF for now because no static alias links would work. The only links that work are the ones directly from front end displayed menus.

Wednesday, 05 May 2021 07:42 UTC
wb_weeblr

Hi

When I enable sh404SEF, this link becomes broken along with any other static alias links.

What do you mean by "static"? do you mean that you hardcoded those links? that is you inserted links directly as /terms-of-service in the content where they are located?

This cannot work with sh404SEF and is definitely not recommended as it prevents Joomla from picking up those links and processing them. 

The way it works in Joomla is that Joomla searches the articles or page content for non-SEF links (ie index.php?option=com_content&view=article....) and then transforms them into SEF.

If sh404SEF is installed, Joomla asks sh404SEF to do that transformation from non-sef to sef instead of doing it itself.

So if the links are hardcoded as SEF already, Joomla don't see them and can't pass them to sh404SEF. As sh404SEF does not know those URLs, they trigger 404s.

This is the most common reason for this behavior. Others are:

- you need to purge all Joomla cache after installation

- make sure the Joomla SEF system plugin is enabled

Other than that, the main question is indeed how you created links in your content.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 

 
Thursday, 06 May 2021 18:08 UTC
zechris

The page I'm referring to is

https://www.xxxx.com/

The links at the bottom of the page such as TOS (https://www.xxxx.com/terms-of-service) and Privacy Policy (https://www.xxxx.com/privacy-policy) are in menu that is not displayed on a page. Those two links are set to articles with the alias terms-of-service and privacy-policy.

When Joomla SEF/URL Rewriting is not enabled, the URLs from the menus would show as  https://www.xxxx.com/index.php/terms-of-service and https://www.xxxx.com/index.php/privacy-policy, but when Joomla SEF/URL Rewriting is enabled, the URLs are changed to the ones without the index.php

So in the footer module, I updated html for the links to the ones without the index.php. 

 

Thursday, 06 May 2021 18:25 UTC
wb_weeblr

Hi

So in the footer module, I updated html for the links to the ones without the index.php.

You cannot insert direct links in HTML. Joomla does not see them and cannot pass them to sh404SEF for transformation into SEF and they trigger 404.

If you manually insert links, you have to insert them as non-sef URLs: similar to "index.php?option=com_content&view=article&id=xx&Itemid=123" so that Joomla can pass them to us and they can be stored into the database and processed normally.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Sunday, 06 June 2021 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
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.