Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 为什么?http://www. 转到/index.php并https://www. 不是吗?_Apache_Url_Mod Rewrite_Url Rewriting_Url Redirection - Fatal编程技术网

Apache 为什么?http://www. 转到/index.php并https://www. 不是吗?

Apache 为什么?http://www. 转到/index.php并https://www. 不是吗?,apache,url,mod-rewrite,url-rewriting,url-redirection,Apache,Url,Mod Rewrite,Url Rewriting,Url Redirection,我遇到了一个奇怪的错误,导致搜索引擎优化结果很差 使用时,一切正常,显示/index.php 但是,或http://或https://不显示index.php 这是我的重写配置 RewriteCond%{HTTP\u HOST}^www\.domain\.com$ 重写规则^/?$“https\:\/\/domain\.com\”[R=301,L]如果你有搜索控制台,你可以检查你的域有什么问题。如果你找不到任何问题,我的建议是找到好的SEO代理。你的排名有可能会因为差异而受到影响。 你好

我遇到了一个奇怪的错误,导致搜索引擎优化结果很差

使用时,一切正常,显示/index.php

但是,http://https://不显示index.php

这是我的重写配置

RewriteCond%{HTTP\u HOST}^www\.domain\.com$

重写规则^/?$“https\:\/\/domain\.com\”[R=301,L]
如果你有搜索控制台,你可以检查你的域有什么问题。如果你找不到任何问题,我的建议是找到好的SEO代理。你的排名有可能会因为差异而受到影响。 你好