.
-, , Windows 2012, somedomain.com , .. . , SSL, . , SSL , , .
, Url Rewrite, . ? - , - - ( 301 ). - URL- , .
Url Rewriting, Web.config:
<system.webServer>
<rewrite>
<rules>
</rules>
</rewrite>
</system.webServer>
( , services.somedomain.com ).
, http://services.somedomain.com/appservices/service1.svc/getdata http://services.somedomain.com/getdata.
<rule name="SubDomainAppService" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^services\.somedomain\.com$" />
</conditions>
<action type="Rewrite" url="{HTTPS}services.somedomain.com/appservices/service1.svc/{R:1}" />
</rule>
, services.somedomain.com/getdata, URL- services.somedomain.com/appservices/service1.svc/getdata. / HTTPS.
SSL , , . HTTP HTTPS.
<rule name="Redirect to HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>
URL - , . , , :
:
DNS, SSL- , DNSimple. " Troy Hunt, . SSL- DNSimple .
* , , . API.