Ads.txt 未找到 - 为 https 重定向正确配置 htaccess

Ads.txt not found - properly configure htaccess for https redirection

我正在尝试让 Google 找到我的 ads.txt 文件。

目前我在尝试通过 HTTP 访问它时遇到问题(404 错误):

但是在 https 上它工作正常:

我认为我的 .htaccess 文件一定有问题,该文件目前显示为:

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC] 
RewriteRule ^ https://leblonblue.com%{REQUEST_URI} [R=301,L,NE]

任何帮助将不胜感激

谢谢!

-- 编辑

按照 CBroe 的建议将重定向放在其他内容之前

RewriteEngine On

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC] 
RewriteRule ^ https://leblonblue.com%{REQUEST_URI} [R=301,L,NE]

RewriteBase /
RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

正如 CBroe 所建议的,问题实际上出在我的服务器配置上。

我从 htaccess 中删除了重定向规则并修复了我的负载均衡器以正确路由 http。