Codeigniter - how to remove the index.php from url?

前端 未结 4 2024
醉酒成梦
醉酒成梦 2021-01-05 14:03

I have following structure of my project

/system
/applications
  /cache
  /core
  /helpers
  /hook
  /language
  /libraries
  /logs
  /third_party
  /admin-p         


        
4条回答
  •  无人及你
    2021-01-05 14:44

    Be sure of the following :

    1. .htaccess needs to be placed in the same directory as the index.php file, usually root of the application.
    2. read the manual about codeigniter and .htaccess
    3. Be sure that apache is running the rewrite module named : rewrite_module you can read more about enabling the module on linux here : Blog post or for wamp here : Wamp icon -> Apache -> Apache Modules -> rewrite_module

提交回复
热议问题