Short break for holiday season

The holiday season is with us and we'll be off from December 25, 2025 and back on January 5nd, 2026.

Don't forget to look up the documentation, including the videos, your answer may already be there! Likewise, be sure to check the Development versions area, in case your problem may already have been solved.

In case of emergency (ie your site is down with a fatal error directly linked to one of our extensions), please contact us by email (see contact icon at the bottom of all pages of this site).

All the best to your and your family! See you around in 2026!

 

#6338 – How to get sef url if I have a non-sef url through code/api?

Posted in ‘Pre-sale questions’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 30 August 2016 09:14 UTC
sushan
Hi,

I am using sh404sef component on my site to get sef url's.

However, I am not sure how to achieve it through coding in CLI Script.

i.e. suppose I have a non-sef url (for eg. index.php?option=com_mycomponent&view=category&layout=category&Itemid=389&category_id=17)
and
I need a sef url for it, then how can I achieve it by coding in CLI script?

Do I need to pass this non-sef url to any api of sh404sef?
 
Wednesday, 31 August 2016 09:02 UTC
wb_weeblr
Hi,

Sh404sef follows the Joomla API, so you can and should only use the Joomla routing API, ie. Use the Joomla JRoute class.

Rgds
 
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.