php - Use example.com/param instead of example.com/def_controller/index/param -


i need acess default contrillers index function without need write controllers name , index in url, pass parameter value right after domain name. in jsfiddle when after domain name pass identifier of fiddle.

how can achive in codeigniter site?

i guess should made in htaccess file.

could me that?

there nothing .htaccess. don't think so.

you can customize url in routes.php placed on application/config.

$route['(:num)'] = 'def_controller/index/$1'; 

uri routing wildcards


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -