WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
[resolved] How can I force https on everything? (3 posts)

  1. pixelnate
    Member
    Posted 1 year ago #

    My SSL Cert is set up and everything works when a user goes to https://texasbaptists.org, but if you just type in the URL (texasbaptists.org) they go strait to the http and NOT https. I have scoured the interwebs, but most solutions are for a standalone site. Cany anybody point me in the right direction to find out what I need to put in my .htaccess or change in the plugin I would be eternally greatful.

    This is for a large WPMU site and only the parent domain is being secured.

    Thanks.

    http://wordpress.org/extend/plugins/wordpress-https/

  2. pixelnate
    Member
    Posted 1 year ago #

    I fixed it. I just put this function in the bottom of my functions.php file and now it always uses the secured url.

    function my_force_ssl() {
        return true;
    }
    add_filter('force_ssl', 'my_force_ssl', 10, 3);
  3. CS_KB
    Member
    Posted 4 months ago #

    Worked for me also on 3.8.1
    awesome, thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic