WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
How to make Renamed- wp-login page SSL (1 post)

  1. lagoongear
    Member
    Posted 9 months ago #

    Hi Guys,

    I use Rename wp-login.php with the HTTPS plugin for my SSL.
    for instance i changed my wp-admin to
    http://www.example.com/custom-login/

    issue 1,
    When My admin enter http://www.example.com/custom-login/, it didn't redirect to ssl like https://www.example.com/custom-login/

    issue 2
    For now, my admin users can login via http://www.example.com/custom-login/

    I tried to add URL filter by adding /custom-login/ but it didn't work.

    Qns 1
    I saw the FAQ coding below. Will this make all access of /custom-login/ turn into auto SSL HTTPS site?

    Qns 2
    If yes how should I put this code, and where?

    function custom_force_ssl( $force_ssl, $post_id = 0, $url = '' ) {
        if ( $post_id == 5 ) {
            $force_ssl = true;
        }
        return $force_ssl;
    }
    
    add_filter('force_ssl' , 'custom_force_ssl', 10, 3);

    Thanks.

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.