我正在尝试将https://mydomain.com/free屏蔽到www.myotherdomain.com,以便在输入www.myotherdomain.com或myotherdomain.com时,它会在mydomain.com上加载页面,但会在地址栏中显示myotherdomain.com以及通过mydomain.com保持ssl连接而不必使用iframe,这是可能的,我对使用.htaccess和mod_rewrite相当新,我的.htaccess代码如下
# BEGIN WordPress
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{HTTP_HOST} !^javitaonlinecafe\.com$ [NC]
RewriteRule ^(.*)$ http://freejavitacoffee.com [R=301,L]
# END WordPress