DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Using URL Rewrite IIS module to change 'http://' to 'https://'

Sort:
You are not authorized to post a reply.





Advanced Member





    Hi -

    We're looking at installing the IIS 'URL Rewrite' module on our IIS webserver, in order to be able to rewrite URLs from 'http://' to 'https://' on the server level.

    Has anyone out there done this with DNN? Isf so, are there any concerns about it? Any thing we should know?

    Thanks

    -Tom






    Veteran Member





       <rule name="Https Redirect" stopProcessing="true">
                      <match url="(.*)" />
                      <conditions>
                          <add input="{HTTPS}" pattern="off" />
                          <add input="{HTTP_HOST}" pattern=".*" />
                      </conditions>
                      <action type="Redirect" url="https://{C:0}/{R:0}" />
                  </rule>
       


      Is what I use. So, not on IIS level but application level.
      Tjep's digital agencyRegards,
      Tycho de Waard

      Tjep's digital agency
      We just love DNN
      https://www.tjeps.com





      Growing Member





        I use IIS rewrite on all my sites. It was trivial and it just worked.
        Thanks,
        Richard
        www.dynamisys.co.uk





        Advanced Member





          Thanks for the replies -
          Just trying to gather as much info about this in case there are any issues we need to know about.
          Thanks Tycho - We were thinking to do this on the IIS level unless there is some reason not to, is there any particular reason you chose to do so on the application level?
          Good to hear that it seems to work with no issue Richard! Thanks for letting me know.

          I was also curious about the 'URL Rewrite ' tag inside the 'modules' tag I see inside our DNN web.configs. It seems like that is default, Do you know how that would relate to the IIS URL Rewrite? Are they completely separate entities?

          I appreciate all your help!
          Tom





          Veteran Member





            Simple reason is that I do not have IIS Access (I outsourced that) and I do have web.config access. Combining that with FTP allows me for a quick implementation, control over cache and swift roll back if needed.

            (I see the mark up was a bit scrambled by the forum but hopefully, you get the concept. Otherwise I'll make a screendump)
            Tjep's digital agencyRegards,
            Tycho de Waard

            Tjep's digital agency
            We just love DNN
            https://www.tjeps.com





            Advanced Member





              Thanks Tycho -
              No problem I can get the full markup from here if needed.





              Advanced Member





                Do you know anything about the URLRewrite module tag inside webconfig, and whether that relates to the IIS URL Rewrite module in any way?





                Growing Member





                  That is a DNN component. Unrelated to the IIS URL Rewrite module

                  Thanks,
                  Richard
                  www.dynamisys.co.uk





                  Growing Member





                    Many people use the IIS level redirections, I encourage folks to look at using DNN behaviors for this, however, DNN behaviors do not update things such as images etc.

                    Just be aware if using IIS you have 2 things rewriting URL's, you have DNN doing it and IIS and getting "rule happy" on the IIS side can result in fun times diagnosing.
                    Mitchel Sellers
                    Technology Advisory Group Leader
                    CEO @ IowaComputerGurus, Inc. a DNN & .NET Solutions Provider
                    Technical Blog: MitchelSellers.com





                    Advanced Member





                      Thank you all for the info . I appreciate it.

                      Tom
                      You are not authorized to post a reply.

                      These Forums are dedicated to the 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. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                      3. 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.
                      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                      5. No Flaming or Trolling.
                      6. No Profanity, Racism, or Prejudice.
                      7. Site Moderators have the final word on approving / removing a thread or post or comment.
                      8. 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