要去掉CI框架中的index.php,需要进行以下步骤:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
$config['index_page'] = 'index.php';
将其修改为:
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
将其修改为:
$config['uri_protocol'] = 'REQUEST_URI';
这样就可以去掉CI框架中的index.php了。
下一篇:php实现进度条的方法是什么
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站