I am new to Codeigniter. I want to make safe to the model, controller and views. I have found that it is good to put the index.php in a folder of public like below.
--root
--application
--public
--css
--js
--assets
--index.php (the Codeigniter base index.php)
--.htaccess
--system
.htaccess
What should I do for the file that bold,so that when I enter the "example.com/controller/method" can see my page. I don't want "example.com/index.php/controller/method" I hope you got the questions.
[edit]
I add more to explain.
I know how to hide index.php
example.com/public/controller/method => got the page
example.com/controller/method => can't got the page
I want the second one can show the page if I put the index.php into public folder!
index.phpin your url ?