I am creating an API type plugin, which fetches activity stream from easysocial. But I got SEF URL in the activity stream, I want the NON-SEF URL in case SEF is on in Joomla configuration.
Please tell me how can I do this, programmatically.
I tried to override the Joomla config setting in my plugins, but it won't work as given below.
$config = JFactory::getConfig();
$sef = $config->set('sef', 0);
You would need to make a special .htaccess rule for that
Find this section:
And add this line above it:
Where you change the URL to be the nonSEF url you do not want parsed.
I have not verified this. Let me know if it does not work.