我正在寻找设置 2 .htaccess 重写,但不确定它们实际上会是什么样子:
http://www.mysite.com -> http://www.myothersite.com:880
和
https://www.mysite.com -> https://www.myothersite.com:4443
只是为了处理端口转发问题......
这是我目前正在尝试的:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^cloud\.mysite\.com$ [NC]
RewriteCond %{HTTPS} off
RewriteRule ^ http://mysite.no-ip.org:880%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^cloud\.mysite\.com$ [NC]
RewriteCond %{HTTPS} on
RewriteRule ^ https://mysite.no-ip.org:4443%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^mysite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mysite\.com$
RewriteRule ^/?$ "http\:\/\/www\.mysite\.com\/joomla" [R=301,L]