How do I remove 'index.php' from URL in CodeIgniter?

后端 未结 7 1906
清酒与你
清酒与你 2020-11-30 13:20

How do I remove index.php from my URL in CodeIgniter?

I removed index.php from my configuration file, and I have run my rewrite_modul

7条回答
  •  伪装坚强ぢ
    2020-11-30 13:39

    First of all, make sure that you have defined a default controller. Then make sure that you construct URLs in such a way that there is a controller associated with them. For example,

    Home page:

    example.com/home/
    

    Or for the About us page:

    example.com/about/  
    

    Also double check that you have turned on the mod-rewrite module.

提交回复
热议问题