Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/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 从https中排除页面_Apache_.htaccess_Http_Https - Fatal编程技术网

Apache 从https中排除页面

Apache 从https中排除页面,apache,.htaccess,http,https,Apache,.htaccess,Http,Https,我在https页面上有一个指向HTTP页面的iFrame。因此, 新的HTTPs页面将不显示iFrame。我希望从https中排除包含iframe的页面,这样iframe就会显示出来 我当前要将http重定向到https的.htaccess文件如下所示: RewriteEngine On RewriteBase / RewriteCond %{ENV:HTTPS} !=on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R

我在https页面上有一个指向HTTP页面的iFrame。因此, 新的HTTPs页面将不显示iFrame。我希望从https中排除包含iframe的页面,这样iframe就会显示出来

我当前要将http重定向到https的.htaccess文件如下所示:

RewriteEngine On  
RewriteBase /  

RewriteCond %{ENV:HTTPS} !=on  
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

谢谢

在95%以上的情况下,最好通过您的服务器代理您在iframe中引用的内容。您能提供一个示例吗?一个什么示例?如何代理内容?请看一下apaches代理模块的文档。你最终需要两行代码,甚至可能只有一行,你可以通过https协议为整个页面提供服务。通过代理的链接?我会测试的。谢谢