网站文件夹没有完整的SSL锁定

Phi*_*her 8 apache .htaccess ssl cloudflare

所以我正在建立一个新的网站,链接,但由于某种原因没有文件夹有完整的SSL图标.顶级index.php文件具有锁定,但文件夹try/blog中的任何内容都具有partial-ssl.它有锁,但由于"有人可以改变这个页面的外观"类型错误而隐藏它.请帮助,因为我不知道为什么这是hapenning.我确实使用cloudflare,并设置了一个http://qualexcraft.tk/*页面规则来强制https.

更新:现在没有文件夹或文件具有完整锁定

对于任何感兴趣的人,这是我的htaccess文件:

# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase /
ErrorDocument 404 http://qualexcraft.tk/404
# Redirect www urls to non-www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.qualexcraft\.tk [NC]
RewriteRule (.*) https://qualexcraft.tk/$1 [R=301,L]
Run Code Online (Sandbox Code Playgroud)

目录结构:

的index.php

404

index.php

old.php
Run Code Online (Sandbox Code Playgroud)

资产

images
Run Code Online (Sandbox Code Playgroud)

博客

allPosts

index.php
Run Code Online (Sandbox Code Playgroud)

包括

headers

  head.html

  index.html

layout

  footer.html

  navbar.html
Run Code Online (Sandbox Code Playgroud)

地图

MDL

[mdl files]
Run Code Online (Sandbox Code Playgroud)

hjp*_*r92 6

bahaviour的原因之一是你的htaccess文件中的以下行:

ErrorDocument 404 http://qualexcraft.tk/404
Run Code Online (Sandbox Code Playgroud)

当客户端请求图像时https://qualexcraft.tk/blog/images/android-desktop.png,触发302重定向http://qualexcraft.tk/404.反过来,该页面具有永久重定向设置https://qualexcraft.tk/404.

现在,正如我在评论中提到的那样,还有另一条规则/在URL中添加了一个尾随并将其重定向到http://qualexcraft.tk/404/.最后; 将状态码301重定向到安全页面:https://qualexcraft.tk/404/.

中间重定向到http页面是问题的根本原因.当有人访问blog您网站上的链接时也会出现同样的情况.

要求https://qualexcraft.tk/blog重定向到http://qualexcraft.tk/blog/然后再转到https://qualexcraft.tk/blog/.


更改网站后,行为仍然相同,但请求现在是https://qualexcraft.tk/favicon.ico.


尝试将htaccess更新为以下内容:

Options -MultiViews
DirectorySlash Off
ErrorDocument 404 https://qualexcraft.tk/404

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+)/?$ $1/index.php [L]

RewriteCond %{HTTP_HOST} ^www\.qualexcraft\.tk [NC]
RewriteRule (.*) https://qualexcraft.tk/$1 [R=301,L]
Run Code Online (Sandbox Code Playgroud)