How to remove index.php in codeigniter's code?

前端 未结 3 482
小鲜肉
小鲜肉 2021-01-28 21:56

I want to remove index.php from url in codeigniter . So in user guide, there is way to do it by editing .htaccess.But my host do not allow to edit it. Is there any way to do wit

3条回答
  •  滥情空心
    2021-01-28 22:28

    Sorry, I'm afraid it's not possible. CodeIgniter (or browsers in general, for that matter) need an index file, by editing the .htaccess file you tell the browser not to show the 'index.php' part, but it's still there. Removing the index.php file itself is silly since your website won't work without it.

提交回复
热议问题