title: wcf webservice and URL forwarding with https
body: <p>I have been researching and trying to solve this issue for few days without success.</p>
  
  <p>I have a WCF webservice deployed on IIS 8 on windows server 2012.</p>
  
  <p>during development, I have been using the full url for the service in order to make the service calls.</p>
  
  <p>example:</p>
  
  <pre><code>http://myserver.com/appservices/service1.svc/getdata 
  </code></pre>
  
  <p>But now I need to do the following:</p>
  
  <ol>
  <li><p>I have a domain on godaddy, lets say <strong>somedomain.com</strong>, and I want to have a subdomain <strong>services.somedomain.com</strong> to use instead of the full url. So I want to have something like <code>services.somedomain.com/getdata</code> instead of writing the full url above. I was not able to do this. I tried to setup URL Forwarding on Godaddy for the subdomain <strong>services</strong> to forward to <code>http://myserver.com/appservices/service1.svc</code>, this works on the browser, but when using it on the mobile application or through fiddler I get a 301 error. (I tried both with and without masking). Is there a way to achieve that?</p></li>
  <li><p>I need to get an SSL certification for it. My question here is, for which domain should I get it? do I get it for the <strong>somedomain.com</strong> or for the subdomain <strong>services.somedomain.com</strong> or maybe for the original domain <strong>myserver.com</strong>. I'm a bit lost here, and I don't want to buy and ssl certificate on the wrong one</p></li>
  </ol>
  
  <p>To give you an overall idea of the final result I'm hoping to get, I need to have the following:</p>
  
  <p><strong>somedomain.com</strong> points to a website deployed on iis</p>
  
  <p><strong>services.somedomain.com</strong> points to a wcf webservice deployed on the same iis, and it will be used for services that will be called from android/iphone. <em>And this needs to have an SSL Certification</em></p>
  
  <p>I have bought <strong>somedomain.com</strong> from godaddy</p>
  
  <p>Thanks a lot for any hint/help I really appreciate it</p>