问题描述
我正试图让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,NE]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)