【问题标题】:new bonfire install not working. Error message about .htaccess新的篝火安装不起作用。关于 .htaccess 的错误消息
【发布时间】:2013-08-23 00:35:43
【问题描述】:

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

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

网址如下:

 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 中的那个,因为它似乎是主要的。 但我仍然收到相同的错误消息。 任何建议将不胜感激。

【问题讨论】:

    标签: .htaccess bonfire


    【解决方案1】:

    假设 mod_rewrite 已启用,请不要忘记在您的 .htaccess 文件中将其打开:

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

    如果您认为它可能没有打开,请运行:

    sudo a2enmod rewrite
    sudo service apache2 reload
    sudo service apache2 restart
    

    【讨论】:

      【解决方案2】:

      我必须将以下行添加到文件中

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

      代码:

       $config['index_page'] = 'index.php';
      

      谢谢。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-05-15
        • 2015-09-24
        • 2011-06-25
        • 1970-01-01
        • 1970-01-01
        • 2017-03-03
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多