如何允许一个静态HTML文件正常访问而不允许WordPress运行?



我在public_html安装了一个wordpress网站。

我在public_html目录中放置了一个谷歌验证文件"googleb2b619edeea6dd33.html"。

当我尝试访问此文件"googleb2b619edeea6dd33.html"时,出现404错误-找不到页面

目前我的.htaccess文件如下

我在 .htaccess 文件中放哪一行以仅允许访问"googleb2b619edeea6dd33.html">

# BEGIN rlrssslReallySimpleSSL rsssl_version[3.3.3]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
# END rlrssslReallySimpleSSL
# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

实际上这是我的错误。它正在返回文件内容。但是文件内容是错误的。

当网络服务器上没有谷歌验证文件时,我使用了"将链接另存为"。所以它下载了404错误html。

最新更新