1 个文件不能包含 https



Vimeo仍然是一个https问题。我在https服务器上有一个WordPress多站点。在大多数文件中,地址是http还是https并不重要。但是,Vimeo有一页。我需要确保仅使用 http 访问特定页面,以便视频正常工作。问题的原因是从https页面返回的链接会自动拾取https。以下内容不会破坏页面,但会保留 https。

# 9/23/13 Vimeo address should not be reached through https
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /wordpress-page-with-vimeo
RewriteRule ^(.*)$ http://wordpress-site.com/$1 [R,L]

感谢您的帮助!

我假设您的问题是,如何解决您的重写,因为它不起作用。不会是这样的吗?

RewriteEngine on
RewriteCond %{HTTPS} on
RewriteRule ^/wordpress-page-with-vimeo(.*) http://wordpress-site.com/wordpress-page-with-vimeo$1 [L,R=301]

注意:这尚未经过测试,因为我现在无法访问我的本地 Web 服务器。

最新更新