CodeIgniter - Remove "Index" From URL
You can set up the routes for this, in application/config/routes.php
, add a new line:
$route['view-topic/(:any)'] = 'view-topic/index/$1';
This will route your URL http://url.com/view-topic/anythinggoeshere
will mask the view-topic/index/anythinggoeshere
controller.
More information on routing: