Website is running on a web host where we don\'t have access to a .htaccess file. However, I want to do URL rewriting for user friendly URLs.
.htaccess
e.g. Origi
as Alix Axel suggested you can use
www.example.com/index.php/file/name
then you will use $_SERVER['REQUEST_URI'] to process the URL.
$_SERVER['REQUEST_URI']