Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.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
Php 如何从HTTPS移回HTTP?_Php_Apache_.htaccess - Fatal编程技术网

Php 如何从HTTPS移回HTTP?

Php 如何从HTTPS移回HTTP?,php,apache,.htaccess,Php,Apache,.htaccess,我最近使用以下代码将我的URL从HTTP连接到HTTPS: RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTPS} ^on$ RewriteRule ^(.*)$ http://example.com/$1 [NC,L,R] 但现在我想把一切都恢复原状,因为我改变了主意,打破了一切 我正在使用以下代码: RewriteCond %

我最近使用以下代码将我的URL从HTTP连接到HTTPS:

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} ^on$
RewriteRule ^(.*)$ http://example.com/$1 [NC,L,R]
但现在我想把一切都恢复原状,因为我改变了主意,打破了一切

我正在使用以下代码:

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} ^on$
RewriteRule ^(.*)$ http://example.com/$1 [NC,L,R]
但它似乎只适用于某些页面

如何在所有页面上对其进行图像处理

RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
这对我有帮助


这对我有帮助

您可能希望尝试使用https,并修复您损坏的内容;)而不是试图回到过去,却不得不再次前进?如果你有任何形式的输入。。。https现在受到谷歌之类的鼓励。实际上我需要回到HTTP,因为adsense的收入下降了75%!!您可能希望尝试使用https,并修复您损坏的内容;)而不是试图回到过去,却不得不再次前进?如果你有任何形式的输入。。。https现在受到谷歌之类的鼓励。实际上我需要回到HTTP,因为adsense的收入下降了75%!!