WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 9 months ago

#20253 new enhancement

SSL login in custom port — at Initial Version

Reported by: rseabra Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.1
Component: Permalinks Keywords: has-patch ssl
Focuses: Cc:

Description

From my blog article, http://blog.1407.org/2012/03/18/log-into-wordpress-with-ssl-on-custom-port-if-needed/

In order to login into WordPress with SSL you just need to add the following to wp-config.php:

    define(‘FORCE_SSL_LOGIN’, true);
    define(‘FORCE_SSL_ADMIN’, true);

But that redirects you to https://www.yourDomain.org/. What if you need to redirect into https://www.yourDomain.org:8443/ ? What then?

Well, the following patch will allow you to add a property called CUSTOM_PORT which you will define as your desired port. In case of my small example, 8443 like this:

    define(‘CUSTOM_PORT’, 83);

Change History (1)

@rseabra3 years ago

custom port for ssl patch

Note: See TracTickets for help on using tickets.