模态签名需要身份验证

时间:2018-06-11 09:33:44

标签: .htaccess authentication ssl lets-encrypt

我正在设计一个使用Wordpress的网站,但还没有学到很多关于SSL的知识。我有一个用于Wordpress的SSL插件,但是在我重新访问该页面2天后,出现了“需要身份验证”登录窗口(见下文)。当我按下取消按钮时,该命令将报告错误。

enter image description here

我查看了一些教程,并使用以下内容编辑了.htaccess文件>但它仍然无效。你能告诉我如何解决这个问题吗?

# ----------------------------------------------------------------------
# | Redirect all domains to `http://` to avoid SSL warning notices     |
# ----------------------------------------------------------------------

# If you have an SSL certificate on your primary domain name and attempt
# to view a URL using a domain aliases your browser will return an SSL error.
# as it is attempting to verify the site identity using the SSL cert assigned
# to the main domain name. To fix this we redirect all domain aliases to the
# non-SSL `http://` version of the URL and follow-up by redirecting `https://`
# version of the URL.

<ifmodule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 Rewritecond %{HTTP_HOST} !^www\.efe-estrichbau\.de [NC]
 RewriteRule (.*) http://www.efe-estrichbau.de/$1 [R=301,L]
</ifmodule>

# ----------------------------------------------------------------------
# | Forcing `https://`                                                 |
# ----------------------------------------------------------------------

# Redirect from the `http://` to the `https://` version of the URL.
# https://wiki.apache.org/httpd/RewriteHTTPToHTTPS

<ifmodule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{HTTPS} !=on
 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</ifmodule>

0 个答案:

没有答案