eutychus
  •  eutychus
  • 86.60001% (Honored)
  • YAF Lover Topic Starter
2019-01-08T20:54:04Z
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!
Sponsor
tha_watcha
2019-02-10T06:03:00Z
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
Users browsing this topic

    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