I purchased a UCC multi domain ssl in other words I can add 15 websites under the same ssl. dominipurchasedthesslunder .com
In my webconfig file I am trying to redirect all request to https: // www . example. com I have in IIS set up the http non www to redirect to the https :// www. version of the website.
I have in my webconfig file
<rule name="HTTP Redirect to HTTPS" enabled="true" stopProcessing="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>
<rule name="Redirects to www. example. com" patternSyntax="ECMAScript" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^example.com$" />
</conditions>
<action type="Redirect" url="https: // www. example .com/{R:0}" />
</rule>
I can test anything and I am redirected correctly except. https :// mydomain. com/
So I did a header check to see the trace route. The blow is what I got.
URI Valet Report for https :// domain I am checking .com/
Requested: 2015/07/01 08:57:42 User Agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
URI Valet Report for https :// domain I am checking .com/
Requested: 2015/07/01 08:57:42 User Agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
Server Headers Details
1. REQUESTING: https :// domain I am checking. com/
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Language: en-us,en;q=0.5
User-Agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
Host: domain I am checking. comConnection: Keep-Alive
SERVER RESPONSE: 301 Moved PermanentlyContent-Type: text/html; charset="UTF-8"
Location: https :// domain I purchased the ssl under .com I am being redirected to the domain I purchased the SSL under
Server: Microsoft-IIS/7.5X-Powered-By: ASP.NET
Date: Wed, 01 Jul 2015 15:57:48 GMTContent-Length: 145
Redirecting to https:// domain I purchased the ssl under com ...
2. REQUESTING: https:// domain I purchased the ssl under. com
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzipAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Language: en-us,en;q=0.5
User-Agent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko
Host: domain I purchased the ssl under. com
Connection: Keep-AliveSERVER RESPONSE: 200 OK
Content-Type: text/html; charset="UTF-8"Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Powered-By: PHP/5.4.24
Set-Cookie: responsivestatus=on
X-Pingback: https :// domain I purchased the ssl under. com/xmlrpc.php
Link: <https :// domainipurchasedthesslunder. com/>; rel=shortlink
X-Powered-By: ASP.NETDate: Wed, 01 Jul 2015 15:57:50 GMT
Content-Length: 13001
Destination URI: https: // domain I purchased the ssl under. com
The computer screen shows
The security certificate presented by this website was issued for a different website's address
Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server
We recommend that you close this webpage and do not continue to this website.
And a link under continue at your own risk.
When I click the link it takes me to the domain I purchased the ssl under just like the header check shows above.
I am lost on how to fix this any advise would be greatly appreciated
What is happening for some reason when I try to access the domain https: // domain .com the website is redirected to the domain I purchased the SSL under. I am lost on this one.
Thanks