Make WordPress Core

Opened 6 years ago

Last modified 20 months ago

#20253 closed enhancement

SSL login in custom port — at Initial Version

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


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)

6 years ago

custom port for ssl patch

Note: See TracTickets for help on using tickets.