• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

https redirect not fully working on this site ?

You are not authorized to post a reply.
Sort:


New Member


Posts:21
New Member

    Is there a problem with http redirects to https on this site?

    I entered dnncommunity.org in the address bar, no http or https, and http was returned. My firwall then decided it didn't like what it received and blocked it.

    Entering https://dnncommunity.ord works as expected.

    Entering http://www.dnncommunity.org/ redirects to https://dnncommunity.org/

    The problem seems to be with http and no "www".

    Declan

     



    New Member


    Posts:21
    New Member

      Please note that in order to show this you will need to clear browser history and possibly also clear cache.


      Veteran Member


      Posts:353
      Veteran Member

        Hi Declan,

        thanks for pointing this out... I did that on my web server by adding a rewrite rule like:

        <_rewrite_>
           <_rules_>
              <_rule name="HTTP to HTTPS redirect" stopProcessing="true"_>
                 <_match url="(.*)" /_>
                 <_conditions_>
                    <_add input="{HTTPS}" pattern="off" ignoreCase="true" /_>
                 <_/conditions_>
                 <_action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" /_>
              <_/rule_>
           <_/rules_>
        <_/rewrite_>
        
        

        There are more security related issues here. Someone who has access to the server (web.config file and IIS Manager) should contact me asap, I can help if you want.

        Happy DNNing!
        Michael

        Michael Tobisch
        DNN★MVP

        dnnWerk Austria
        DNN Usergroup für den deutschsprachigen Raum
        DNN Connect


        New Member


        Posts:9
        New Member

          Michael:

          Where did you apply that?

          I have IIS access & see several places in threads https://docs.microsoft.com/en-us/archive/blogs/kaushal/http-to-https-redirects-on-iis-7-x-and-higher

          But not sure which route to take.

          I have CPQcart.com workiing with https OK on Chrome but Brave & Edge does not revert to https.

          Thanks in advance for any help

           



          Basic Member


          Posts:67
          Basic Member

            Lee, first make sure that URL Rewrite is installed (otherwise adding that to your web.config will cause your site to display an error).  Then you can add it to <_system.webServer> element (and make sure there isn't already an existing <_rewrite> element, having two will also cause an error on the site).

            DNN partner specializing in custom, enterprise DNN development https://engagesoftware.com/showcase


            Veteran Member


            Posts:353
            Veteran Member

              Lee,

              sorry, I have been off for a few days. It is what Brian said... (thanks, Brian!)

              Happy DNNing!
              Michael

              Michael Tobisch
              DNN★MVP

              dnnWerk Austria
              DNN Usergroup für den deutschsprachigen Raum
              DNN Connect


              New Member


              Posts:1
              New Member

                I tried to give an answer, but the forum broke.  I give up.

                You are not authorized to post a reply.

                These Forums are dedicated to discussion of DNN Platform.

                For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
                2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                4. No Flaming or Trolling.
                5. No Profanity, Racism, or Prejudice.
                6. Site Moderators have the final word on approving / removing a thread or post or comment.
                7. English language posting only, please.

                Would you like to help us?

                Awesome! Simply post in the forums using the link below and we'll get you started.

                Get Involved