1.开启Apache重写url模块。

*相应内容可百度。

 

2.在项目根目录下创建【.htaccess】文件,其内容如下:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

 

3.修改 application/config/config.php文件:

*将此项设置为空。

CodeIgniter(3.1.4)框架-url重写,去除index.php

 

相关文章:

  • 2022-02-05
  • 2021-08-30
  • 2021-08-10
  • 2021-08-18
  • 2021-10-24
  • 2021-12-26
  • 2021-10-17
猜你喜欢
  • 2021-06-19
  • 2022-12-23
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2021-11-12
相关资源
相似解决方案