Este plugin no se ha probado con las últimas 3 versiones mayores de WordPress. Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas de compatibilidad cuando se usa con las versiones más recientes de WordPress.

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 and you want to have the admin area https protected, but you don’t have a SSL/TLS certificate so that would work, you can define another domain for secure connections.

For example instead of or the user is redirected to or

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.

This plugin is made by Seravo Oy, which specializes in open source support services and among others is the only company in Finland to provide WordPress Premium Hosting.

Source available at


  1. Upload plugin to the /wp-content/plugins/ directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Make sure the wp-config.php defines the needed constants.


define('FORCE_SSL_ADMIN', true);
define('HTTPS_DOMAIN_ALIAS', '');

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

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

Possible values of $location when calling this function

  • <- the case where https fails and we want to avoid
  • <- the case where https works

Preguntas frecuentes

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.

What does FORCE_SSL_ADMIN do?


Note that defining FORCE_SSL_LOGIN is not needed.


7 de abril de 2020
Crude and simple, but works well. Not that relevant to day as Let's Encrypt and Certbot came along though.
Leer todas las 5 reseñas

Colaboradores y desarrolladores

Este software es de código abierto. Las siguientes personas han contribuido a este plugin.


Traduce "HTTPS Domain Alias" a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

Note that complete commit log is available at


Bugfix: Only convert non-relative links to their root relative form


Don’t try to rewrite relative urls


  • Fix Polylang compatibility
  • The edit.php permalink now displays the real domain, instead of alias


Added tests


  • Wildcard domain aliases are now handled differently -> ->
    as opposed to previous behaviours -> ->
  • Minor refactoring to the code
  • Bugfixes


  • Fix missing script from source files


  • Includes automatic relative URLS in the front end


  • Adds rewrite capabilities for all domains in multisite


  • Mature enough for official 1.0 release


  • All OK!


  • Fix home_url infinite loop and thus enable rewrites for it too


  • Added debug wrapper and made sure this plugin is load first of all plugins.


  • Bugfixes for preview mode and non-admin https pages.


  • Actualizado el archivo readme.txt


  • Enhanced to also support WordPress Network installations.
  • Refactored code to be robust in all known situations.


  • Merged pull request on http preview


  • Improved readme.txt. Log error if the needed constants don’t exist.


  • Initial release.