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';
Comments
Post a Comment