I want to create a non SEF URL for an enhancement functionality. Can someone provide example of how the same can be done in code?
Any url in joomla which is not using JRoute method is non SEF url.
Also if you enable the SEF URLs from global configuration then all the urls will work as sef urls.
Read More : Search Engine Friendly URLs