Welcome Guest! To enable all features please Login or Register.


Go to last post Go to first unread
Offline eutychus  
#1 Posted : 08 January 2019 21:54:04(UTC)

Rank: YAF Lover


Joined: 03/09/2014(UTC)
Posts: 48

Thanks: 1 times
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!
Offline tha_watcha  
#2 Posted : 10 February 2019 07:03:00(UTC)

Rank: YAF.NET Project Lead


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(UTC)
Posts: 3,972

Thanks: 73 times
Was thanked: 1199 time(s) in 1027 post(s)
You could try to add this to the urlrewriter.config...

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

or you are using the iiS Url rewrite module..

Rss Feed  Atom Feed
Users browsing this topic
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.