title: www and non-www passing to jquery not understand
body: <p>I was create an handler for upload images in ck-editor. This is the jquery for call the handler given below.</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
              $(function() {
                  CKEDITOR.replace('&lt;%=ckeditcms.ClientID %&gt;',
        { filebrowserImageUploadUrl: 'http://joinmbw.in/Upload.ashx' }); //path to “Upload.ashx”
              });
          &lt;/script&gt;
  </code></pre>
  
  <p>the  problem is in "filebrowserImageUploadUrl: 'http:// joinmbw.in/Upload.ashx' "...
  the client reach the site with http:// www.joinmbw.in , so that the "filebrowserImageUploadUrl" is not redirect to the Upload.ashx... if i change the "filebrowserImageUploadUrl" to "filebrowserImageUploadUrl:'http:// www.joinmbw.in/Upload.ashx' " it works...</p>
  
  <p>But i want it works  both the domain with www and non-www ...</p>
  
  <p>I was tried this inside webconfig file.</p>
  
  <pre><code>&lt;rewrite&gt;
      &lt;rules&gt;
          &lt;rule name="Redirect HTTP to HTTPS" stopProcessing="true"&gt;
              &lt;match url="(.*)"/&gt;
              &lt;conditions&gt;
                  &lt;add input="{HTTPS}" pattern="^OFF$"/&gt;
              &lt;/conditions&gt;
              &lt;action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther"/&gt;
          &lt;/rule&gt;
      &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>
  
  <p>but it says element system.webserver has invalid child element rewrite.</p>