Old domain to new domain and HTTPS
3 posts
• Page 1 of 1
Old domain to new domain and HTTPS
Hi,
I am using this code below to redirect an old domain to a new domain and it works great. However when someone types https://olddomain.com it does not redirect. Instead it is going to port 443 with that domain name and getting a certificate mismatch.
Is there a way around this? Maybe a way to redirect all https://olddmain.com to https://newdomain.com ?
RewriteCond %{HTTP_HOST} www.olddomain.com.com [NC]
RewriteRule (.*) http\://www.newdomain.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} olddomain.com.com [NC]
RewriteRule (.*) http\://www.newdomain.com/$1 [R=301,L]
Thank You!
John
I am using this code below to redirect an old domain to a new domain and it works great. However when someone types https://olddomain.com it does not redirect. Instead it is going to port 443 with that domain name and getting a certificate mismatch.
Is there a way around this? Maybe a way to redirect all https://olddmain.com to https://newdomain.com ?
RewriteCond %{HTTP_HOST} www.olddomain.com.com [NC]
RewriteRule (.*) http\://www.newdomain.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} olddomain.com.com [NC]
RewriteRule (.*) http\://www.newdomain.com/$1 [R=301,L]
Thank You!
John
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Old domain to new domain and HTTPS
Hello,
Well, 443 is SSL issue. SSL certificate check happens when the connection is being established. Only then it goes to ISAPI_Rewrite and IIS.
So the error will show regardless of the rules. You need to fix SSL issue first, and then the rule can be used. BTW, the rule looks good to me.
Regards
Andrew
Well, 443 is SSL issue. SSL certificate check happens when the connection is being established. Only then it goes to ISAPI_Rewrite and IIS.
So the error will show regardless of the rules. You need to fix SSL issue first, and then the rule can be used. BTW, the rule looks good to me.
Regards
Andrew
Re: Old domain to new domain and HTTPS
Ok, thats odd.
I have a valid SSL certificate for the new domain, but for some reason if you go to the old domain with HTTPS you will get the security warning- but only in Firefox. All other browsers will redirect properly before getting to that warning. I was hoping that there was a way to redirect the URL when someone goes to it with HTTPS but I guess I will have to find another solution.
Thanks,
John
I have a valid SSL certificate for the new domain, but for some reason if you go to the old domain with HTTPS you will get the security warning- but only in Firefox. All other browsers will redirect properly before getting to that warning. I was hoping that there was a way to redirect the URL when someone goes to it with HTTPS but I guess I will have to find another solution.
Thanks,
John
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 18 guests