.htaccess文件修改
DirectoryIndex index.php RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|images|themes|uploads|uploads_thumb|robots\.txt) RewriteRule ^(.*)$ index.php?/$1 [L]
config/config.php中:
$config[‘uri_protocol‘] = "AUTO"; //或者是PATH_INFO
原文地址:https://www.cnblogs.com/super-ldc/p/11207339.html
时间: 2024-11-09 00:05:58