更新时间:2023-02-21 22:27:30
我是这样做的:
在项目根目录下创建.htaccess,内容如下:
Created the .htaccess in the root folder of the project with the content:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php|css|js|images|robots.txt)
RewriteRule ^(.*)$ index.php?$1 [L]
然后,在 config.php 中我修改了这一行.
Then, in the config.php i modified this line.
来自:
$config['url_suffix'] = 'index.php';
致:
$config['url_suffix'] = '';