技术知识分享

解决方案:Chevereto搬家到景安虚拟主机无法打开/登录

故障现象:

  • 报错
  • System error
    The system has encountered errors that must be fixed to allow proper Chevereto functionality. Chevereto won't work until the following issues are solved:
    Can't find root .htaccess file. Re-upload this file and take note that in some computers this file could be hidden in your local folder.

原因:

  • 从VPS搬迁过来的网站并没有 .htaccess 这个文件。

解决方案:

  • 在WEB目录创建  .htaccess 。写入:
  • <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://XXX.666.com/$1 [R,L]   # XXX.666.com请填入自己的域名
    
    </IfModule>

注:

  • .htaccess 不填写任何内容会404报错。
  • .htaccess 不要忘记前面的“ . ”。

 

未经允许不得转载:pc6a学习分享 » 解决方案:Chevereto搬家到景安虚拟主机无法打开/登录

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址