HTTPS Domain Alias

説明

This plugin is useful e.g. if you have a wildcard SSL/TLS certificate for server but not for each site.

If the site is normally at say http://example.org/ and you want to have the admin area https protected, but you don’t have a SSL/TLS certificate so that https://example.org/ would work, you can define another domain for secure connections.

For example instead of https://example.org/wp-login.php or https://example.org/wp-admin/ the user is redirected to https://example.seravo.com/wp-login.php or https://example.seravo.com/wp-admin/.

This plugin works with both normal WordPress installations and WordPress Network installation and is compatible with the WordPress MU Domain Mapping plugin.

The code is optimized to be fast and does not for example do any database lookups or use cookies.

The plugin scenario assumes the site domain is example.com but there is no https certificate for it. Instead there is a https certificate for example.org, which has been defined as the HTTPS_DOMAIN_ALIAS.

In a WordPress Network installation the HTTPS_DOMAIN_ALIAS can be defined as *.example.org and then <domain.tld> will be redirected to .example.org. This plugin is designed to be compatible with
the WordPress MU Domain Mapping plugin.

Possible values of $location when calling this function

http://example.com

https://example.com <- the case where https fails and we want to avoid

The plugin scenario assumes the site domain is example.com but there is no https certificate for it. Instead there is a https certificate for example.org, which has been defined as the HTTPS_DOMAIN_ALIAS.

In a WordPress Network installation the HTTPS_DOMAIN_ALIAS can be defined as *.example.org and then <domain.tld> will be redirected to .example.org. This plugin is designed to be compatible with
the WordPress MU Domain Mapping plugin.

Possible values of $location when calling this function

http://example.com

https://example.com <- the case where https fails and we want to avoid

http://example.example.org

https://example.example.org <- the case where https works

Does this work for WordPress Network?

Yes, since version 0.4.

Where is the UI?

This plugin has no visible UI, the magic happens automatically if the plugin is active.