DNN Forums

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

https redirect not fully working on this site ?

 6 Replies
 2 Subscribed to this topic
 39 Subscribed to this forum
Sort:
Author
Messages
Growing Member Send Private Message
Posts: 32
Growing 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

 

Growing Member Send Private Message
Posts: 32
Growing Member
Please note that in order to show this you will need to clear browser history and possibly also clear cache.
Veteran Member Send Private Message
Posts: 1182
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

DNN Connect
New Around Here Send Private Message
Posts: 18
New Around Here

Michael:

Where did you apply that?

I have IIS access & see several places in threads https://docs.microsoft.co...n-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

 

Advanced Member Send Private Message
Posts: 147
Advanced 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 Send Private Message
Posts: 1182
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

DNN Connect
New Around Here Send Private Message
Posts: 1
New Around Here

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

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