You can do this using codeigniter's URL routing ...
If you want your URL to be http://www.mydomain.com/zarpio, and you want it to link to your_controller, follow these steps:
/config/routes.php
$route['(.*)'] = "your_controller/$1"; // Now, `zarpio` will be passed to `your_controller`
, ...
$my_name = $this->uri->rsegment(2);
URL-. ...
$route['users/(.*)'] = "your_controller/$1";
, your_controller users.
, :
$route['users/profile/(.*)'] = "another_controller/method/$1";
$route['users/(.*)'] = "your_controller/$1";
. users/(.*) , users/zarpio, users/profile/zarpio, your_controller/$1, 404 page not found. users/profile/(.*) users/(.*) .
URI codeigniter