• Home
  • Get help
  • Ask a question
Last post 25 min ago
Posts last week 81
Average response time last week 44 min
All time posts 70349
All time tickets 10858
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.

#10761 – Joomla Core SEF-style URLs are still accessible

Posted in ‘4SEO’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 25 January 2024 17:24 UTC
TheSDHotel

Hello,

I wasn't sure whether to post this in the 4SEO or 4SEF category.

I noticed that the Joomla Core SEF-style URLs are still accessible on my sites.

So if somebody was to type or access the URL of an article (or any page) in the Joomla Core SEF style, the URL is loaded normally.

Now, 4SEO makes it canonicalize to the 4SEF "official" variant, which is good.

But I would prefer not have these URLs accessible at all. I believe that for example back in the sh404sef days, the core SEF URLs would return a 404. Which would be good.

Or alternatively, it would be also good to redirect Joomla Core SEF URL to the "actual" 4SEF URL version. (basically just like you now made nonsef URLs redirect to 4SEF)

Please let me know, thanks!

Thursday, 25 January 2024 17:39 UTC
wb_weeblr

Hi

I noticed that the Joomla Core SEF-style URLs are still accessible on my sites.

Only if one or more extensions in 4SEF are configured to use the Joomla router. If so, the Joomla router is called if an incoming SEF URL is not found in 4SEF database, and the Joomla router then accepts and decode the URL.

If no extension is set to use the Joomla router, then only URLs listed in the SEF URLs list are accepted, all others will trigger a 404.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Thursday, 25 January 2024 17:42 UTC
TheSDHotel

Thanks for the clarification! So if just one extension uses the Joomla router, then that means that Core Joomla SEF for ALL extensions will be accessible?

No way to restrict that?

Thursday, 25 January 2024 17:48 UTC
TheSDHotel

PS: I just tested this. Core Joomla SEF URLS are accessible even if there's no extension set to use the Joomla router.

It also happens if there's one extension set to "Bypass".

Thursday, 25 January 2024 17:55 UTC
wb_weeblr

Hi

Not in my testing (as of right now). Are you sure you don't have Tags set to Bypass?

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Thursday, 25 January 2024 17:56 UTC
TheSDHotel

Yes, I had an extension set to "Bypass" - that was the cause.

So having that in just one extension makes all Core SEF style URLs accessible for all extensions?

Thursday, 25 January 2024 18:00 UTC
wb_weeblr

Hi

Yes, because an incoming URL is just a string of characters. If 4SEF does not find it in its database, it immediately triggers a 404. Except if there's one or more extensions set to use the Joomla router, in which case it just does not do anything and release control of the incoming request handling to Joomla, without knowing the outcome of the Joomla router parsing: it may accept it, or also trigger a 404.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Thursday, 25 January 2024 18:04 UTC
TheSDHotel

Makes sense, thanks. I'll close this :)

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.