我有一个共享的虚拟主机。可以,但是如果一段时间不使用,第一次加载wordpress大约需要10秒钟。
Wordpress已安装在根文件夹中。
我试图用Jquery放置一个html(加载信息)以重定向到index.php,而当worpress“唤醒”时,却导致了循环。
我当时正在考虑更改wordpres的文件夹安装,但是我害怕停止网站并且难以解决...
<html>
<head>
<meta charset="utf-8">
<title>PLAPI</title>
<link rel="icon" type="image/png" href="https://www.plapi.com.br/wp-content/uploads/2019/01/LoguinhoPlapi2.png">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="PLAPI - Plataforma de Aprendizagem Professora Isaura">
<meta name="keywords" content="educação, conteúdo didático" />
<link rel="canonical" href="https://www.plapi.com.br" />
<meta property="og:keywords" content="Escola, professor, fundamentdal, ensino básico" />
<meta property="og:description" content="PLAPI é uma plataforma de conteúdo e consultoria educacional" />
<meta property="og:locale" content="pt_BR" />
<meta property="og:type" content="company" />
<meta name="author" content="PLAPI">
<meta property="og:site_name" content="PLAPI - Plataforma de Aprendizagem Professora Isaura"/>
<meta name="description" content="PLAPI é uma plataforma de conteúdo e consultoria educacional">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script>
$(document).ready(function() {
var url = "https://www.plapi.com.br/index.php";
$(location).attr('href',url); });
</script>
</head>
<body>
<style>
.loadercp2 {
width: 50px;
height: 50px;
background: url('https://www.rnconstrutorabe.com.br/site/wp-content/uploads/2018/12/straight-loader.gif');
position: fixed;
top: 50%;
left: 50%;
margin-top: -100px;
margin-left: -50px;
}
.divmaior {
width: 200px;
height: 280px;
position: fixed;
top: 50%;
left: 50%;
margin-top: -160px;
margin-left: -120px;
//background-color: yellow;
}
</style>
<div class="divmaior" align="center"> <img src="https://www.plapi.com.br/wp-content/uploads/2018/11/cropped-LogoPlapi-1.png" style="width:160px; height="80px;"/>
<div class="loadercp2" align="center"><span class="djr08rem"></span></div>
<br><br><br><br><br>
Carregando...
<div>
</body>
</html>
当我放置此index.html时,会导致循环。所以我将index.html重命名为indexok.html ... http://plapi.com.br/indexok.html
在不更改wordpress文件夹安装的情况下该怎么办?
谢谢。