tengxunyun tengxunyun

解决方案: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 不要忘记前面的“ . ”。
cloudiplc

相关推荐

返回顶部
Close