locked
how can we have one http page in our site when others are https RRS feed

  • Question

  • User-1693623980 posted

    how can we have one http page when SSL installed for site?

    control panel of my host is helm

    I couldnt find anything related to ssl in panel expect below part in Website Settings section


    Change settings related to your website, including Shared SSL and web forwarding
    General     web Forwarding    Default Docs

    and If I have a http page how can I redirect user to https web pages?

    consider the site name is abc.com

    after installing ssl by host admin, when user enter abc.com in address bar he/she face this error

    The page must be viewed over a secure channel

    The page you are trying to access is secured with Secure Sockets Layer (SSL).


    Please try the following:

    • Type https:// at the beginning of the address you are attempting to reach and press ENTER.

    HTTP Error 403.4 - Forbidden: SSL is required to view this resource.
    Internet Information Services (IIS)


    Technical Information (for support personnel)

    • Go to Microsoft Product Support Services and perform a title search for the words HTTP and 403.
    • Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled About Security, Secure Sockets Layer (SSL), and About Custom Error Messages.

    So I think If I make a blank page (as first page) http, then I can redirect user to https://abc.com using that blank page.

    please help.

    Sunday, May 18, 2014 11:48 AM

Answers

  • User281315223 posted

    I suppose that you could do something similar to this Stack Overflow discussion to handle forcing some pages as HTTP and others as HTTPS.

    If you wanted to handle redirecting all HTTP calls to HTTPS within IIS, you could use the following rule as mentioned in this other blog post on the topic :

    <rule name="HTTP to HTTPS redirect" stopProcessing="true">
      <match url="(.*)" />
        <conditions>
          <add input="{HTTPS}" pattern="off" ignoreCase="true" />
        </conditions>
     <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
    </rule>
    

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 18, 2014 1:51 PM
  • User753101303 posted

    Hi,

    Or try http://www.sslshopper.com/iis7-redirect-http-to-https.html if possible (method 2 as method 1 is likely a rewrite method you saw).

    Note though that jQuery is just a javascript library so if you had something wrong with https, it may not work either regardless of what is used to do the http to https switch. You would need then to investigate the exact problem to see if this is something caused by you or by this particular jQuery plugin (such as an hardcoded http path somewhere) so it can be fixed.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 18, 2014 3:57 PM
  • User753101303 posted

    Bahare Feizi

    so when user write in address bar abc.come he face error

    so I need at least one http page, how can I have it?

    No we need first to understand first what is this error before seeing how it could be fixed. If I try https://tablighijat.com/ it seems the certificate is a test certificate that has not been validated by a trusted authority and if this is the case, adding an http page won't solve this.

    If this is your issue, try https://www.ssllabs.com/ssltest/analyze.html?d=tablighijat.com and click the NOT TRUSTED Why ? link.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 18, 2014 4:58 PM

All replies

  • User281315223 posted

    I suppose that you could do something similar to this Stack Overflow discussion to handle forcing some pages as HTTP and others as HTTPS.

    If you wanted to handle redirecting all HTTP calls to HTTPS within IIS, you could use the following rule as mentioned in this other blog post on the topic :

    <rule name="HTTP to HTTPS redirect" stopProcessing="true">
      <match url="(.*)" />
        <conditions>
          <add input="{HTTPS}" pattern="off" ignoreCase="true" />
        </conditions>
     <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
    </rule>
    

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 18, 2014 1:51 PM
  • User-1693623980 posted

    thanks,

    but url rewrite is only way?

    I worked before with url rewirte (intelligencia) and face a lot of problem with it. (for example some jquery pluging doesnt worked anymore)

    after solving one problem other one was coming. (so I prefer avoid rewrite) mybe because of my less knowledege.

    I found this link
     http://www.serverintellect.com/support/programming/require-ssl-and-https-redirect/

    so If I could have one http page I think I can use below code for redirect

    Response.Redirect("https://www.website.com");

    Sunday, May 18, 2014 3:30 PM
  • User753101303 posted

    Hi,

    Or try http://www.sslshopper.com/iis7-redirect-http-to-https.html if possible (method 2 as method 1 is likely a rewrite method you saw).

    Note though that jQuery is just a javascript library so if you had something wrong with https, it may not work either regardless of what is used to do the http to https switch. You would need then to investigate the exact problem to see if this is something caused by you or by this particular jQuery plugin (such as an hardcoded http path somewhere) so it can be fixed.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 18, 2014 3:57 PM
  • User-1693623980 posted

    No,

    my main problem isnt redirect from http to https

    my main problem is my host admin installed ssl for all pages so when user write in address bar abc.come he face error

    so I need at least one http page, how can I have it?

    I found this link http://www.webhostingtalk.com/showthread.php?t=925938

    and in post 11 motiv said "You have to first configure the SSL certificate on your server/website, after that you can call pages via http/https as you wish. "

    so based on that after installing ssl we could open website with both  http://abc.com

    and http://abc.com

    so why in my site users face the error with http://abc.com ? this is my site https://tablighijat.com/

    Sunday, May 18, 2014 4:33 PM
  • User753101303 posted

    Bahare Feizi

    so when user write in address bar abc.come he face error

    so I need at least one http page, how can I have it?

    No we need first to understand first what is this error before seeing how it could be fixed. If I try https://tablighijat.com/ it seems the certificate is a test certificate that has not been validated by a trusted authority and if this is the case, adding an http page won't solve this.

    If this is your issue, try https://www.ssllabs.com/ssltest/analyze.html?d=tablighijat.com and click the NOT TRUSTED Why ? link.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 18, 2014 4:58 PM
  • User-1693623980 posted

    Thanks

    So, if it was a Trusted ssl, how can I had first pages as http? what setting In IIS I need?

    it is first time I face a Project need ssl.

    Sunday, May 18, 2014 10:23 PM