There are many tutorials that talk about deleting index.php from the url. But I want one step forward of it.
The link is: http://www.example.com/index.php/controller/function/single-variable
I want it like: http://www.example.com/some-name-that-i-put/single-variable
I cannot find a tutorial to do such a thing. How to do it?
i wasnt sure whether you were wanting to do direct URL rewrites how CI does it out of the box or not… but this is how you do URL Rewrites:
your class/function/id
example.com/news/article/13transposes to:example.com/class/function/IDhttp://codeigniter.com/user_guide/general/urls.html
you can set this by doing two things:
in your config.php file under application/config/ edit these:
create a .htaccess in http root:
This is how you do URI Route changes
if you want to change the organization of the URI you can use URI Routes defined in routes.php as described here: http://codeigniter.com/user_guide/general/routing.html