Forum Moderators: phranque
[domain1.tld:443...]
[domain2.tld:444...]
Both domains work in port 80 and 443 (domain1) and 444 (domain2). [domain1.tld...] works in https without specifying the port number, 443. [domain2.tld...] will only work when the port 444 is specified.
Question: Is there a way, using mod_write, to force SSL requests using www.domain2.tld to port 444?
The goal is to not require the port number in the URL.
This is what I have tried so far:
RewriteCond %{HTTP_HOST} ^www.domain1.tld [NC]
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ https://www.domain2.tld:444/$1 [R,L]
Welcome to WebmasterWorld [webmasterworld.com]!
Sorry I missed your post. I don't have an answer for you, but maybe someone here has done this before...
Has anyone here done this that can help out?
<bump>
Jim