can't call the second function in controller codeigniter
The default routing scheme is example.com/class/function/id/
Doc
If site_folder
is the folder where you have installed codeigniter, Your url to function2
would be,
http://localhost/site_folder/my_site/function2
It may be the issue please Check the uri protocol in the config file that should be AUTO. Config/config.php ===> $config['uri_protocol'] = 'AUTO';