新的篝火装置不工作。关于.htaccess的错误消息

新的篝火装置不工作。关于.htaccess的错误消息,.htaccess,bonfire,.htaccess,Bonfire,只是想安装一个新的篝火。我已经完成了安装过程,当我启动网站时,我会看到欢迎页面,没有问题。 但当我单击“登录”按钮时,会收到以下错误消息: 在此服务器上找不到请求的URL/index.php。 本地主机端口80上的Apache/2.2.22(Ubuntu)服务器 URL看起来像: http://myserver/testsite/login 在安装过程中,我收到了以下消息: 请将.htaccess RewriteBase设置设置为:RewriteBase /testsite/请删除安装文件夹

只是想安装一个新的篝火。我已经完成了安装过程,当我启动网站时,我会看到欢迎页面,没有问题。 但当我单击“登录”按钮时,会收到以下错误消息:

在此服务器上找不到请求的URL/index.php。 本地主机端口80上的Apache/2.2.22(Ubuntu)服务器

URL看起来像:

 http://myserver/testsite/login
在安装过程中,我收到了以下消息:

请将.htaccess RewriteBase设置设置为:RewriteBase /testsite/请删除安装文件夹并返回到Bonfire

我在我的盒子上做了一个“find/-name.htaccess”,它发现了一些:

/var/www/testsite/.htaccess
/var/www/testsite/install.old/.htaccess
/var/www/testsite/bonfire/application/.htaccess
/var/www/testsite/bonfire/application/cache/.htaccess
/var/www/testsite/bonfire/codeigniter/.htaccess
我试着改变/var/www/testsite中的一个,因为它似乎是主要的一个。 但我还是收到了同样的错误信息。
如果您有任何建议,我们将不胜感激。

如果启用了
mod_rewrite
,请不要忘记在.htaccess文件中打开它:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /testsite/
</IfModule>

我必须在文件中添加以下行

/var/www/bonfire/application/config/config.php

代码:

谢谢

sudo a2enmod rewrite
sudo service apache2 reload
sudo service apache2 restart
 $config['index_page'] = 'index.php';