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

  1. lagoongear
    Posted 1 year ago #

    Hi Guys,

    I use Rename wp-login.php with the HTTPS plugin for my SSL.
    for instance i changed my wp-admin to

    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);



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress HTTPS (SSL)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.