#1
For a while I've had a website and message board which was built around the YAF Sample Application. I just received a security certificate for the site and want to force all http requests to https. What's the best way of doing this? Is there a function within the YAF framework that will do this for me?

For what it's worth ... I've tried the .htaccess angle which doesn't seem to work in my case.

Thanks in advance for your help!
Topic Starter
  • eutychus
  • Rank: YAF Lover
  • Reputation:
    Honored
    81.8%
  • Joined: 03/09/2014
  • Posts: 48
  • Thanks: 1 times
#2
You could try to add this to the urlrewriter.config...

<rewriter>
    <if header="HTTPS" match="^OFF$">
        <redirect url="(.*)" to="https://yourdomain.com$1"/>
    </if>
</rewriter>



or you are using the iiS Url rewrite module..

https://blogs.technet.mi...-iis-url-rewrite-module/ 

UserPostedImage
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,034
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1215 time(s) in 1040 post(s)
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved