在我的Web服务器中,它's not on root directory, it'在一个名为intranet的子文件夹中 .所以我在config.php中更新了数据库设置和配置:
$config['base_url'] = 'http://example.com/intranet/';
但是在localhost上没有't a single route that is working, and it'正常工作 .我必须做的其他事情才能在我的网络服务器上正常工作吗?
只需将此代码放入.htaccess文件中即可试用
RewriteEngine On RewriteBase /intranet/ RewriteCond %{REQUEST_URI} ^system.* RewriteCond $1 !^(index\.php|images|js|uploads|css|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]
1 回答
只需将此代码放入.htaccess文件中即可试用