{"id":27223,"date":"2014-01-14T07:19:13","date_gmt":"2014-01-14T07:19:13","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/https-domain-alias\/"},"modified":"2020-07-28T08:06:38","modified_gmt":"2020-07-28T08:06:38","slug":"https-domain-alias","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/https-domain-alias\/","author":9201571,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4.3","stable_tag":"trunk","tested":"4.9.29","requires":"3.7","requires_php":"","requires_plugins":"","header_name":"HTTPS Domain Alias","header_author":"Seravo Oy","header_description":"","assets_banners_color":"50b1da","last_updated":"2020-07-28 08:06:38","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/seravo.com\/","header_plugin_uri":"https:\/\/github.com\/Seravo\/wp-https-domain-alias","header_author_uri":"https:\/\/seravo.com","rating":5,"author_block_rating":0,"active_installs":40,"downloads":12540,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"5"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"980082","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"980082","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"838225","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.4.3"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[35295,555,1908,1536,6934],"plugin_category":[54],"plugin_contributors":[84504,80821,80820],"plugin_business_model":[],"class_list":["post-27223","plugin","type-plugin","status-publish","hentry","plugin_tags-alias","plugin_tags-domain","plugin_tags-https","plugin_tags-ssl","plugin_tags-tls","plugin_category-security-and-spam-protection","plugin_contributors-onnimonni","plugin_contributors-ottok","plugin_contributors-zuige","plugin_committers-ottok"],"banners":{"banner":"https:\/\/ps.w.org\/https-domain-alias\/assets\/banner-772x250.jpg?rev=838225","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/https-domain-alias\/assets\/icon-128x128.png?rev=980082","icon_2x":"https:\/\/ps.w.org\/https-domain-alias\/assets\/icon-256x256.png?rev=980082","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin is useful e.g. if you have a wildcard SSL\/TLS certificate for server but not for each site.<\/p>\n\n<p>If the site is normally at say <code>http:\/\/example.org\/<\/code> and you want to have the admin area https protected, but you don't have a SSL\/TLS certificate so that <code>https:\/\/example.org\/<\/code> would work, you can define another domain for secure connections.<\/p>\n\n<p>For example instead of <code>https:\/\/example.org\/wp-login.php<\/code> or <code>https:\/\/example.org\/wp-admin\/<\/code> the user is redirected to <code>https:\/\/example.seravo.com\/wp-login.php<\/code> or <code>https:\/\/example.seravo.com\/wp-admin\/<\/code>.<\/p>\n\n<p>This plugin works with both normal WordPress installations and WordPress Network installation and is compatible with the WordPress MU Domain Mapping plugin.<\/p>\n\n<p>The code is optimized to be fast and does not for example do any database lookups or use cookies.<\/p>\n\n<p>This plugin is made by <a href=\"https:\/\/seravo.com\/\">Seravo Oy<\/a>, which specializes in open source support services and among others is the only company in Finland to provide <a href=\"https:\/\/seravo.com\/\">WordPress Premium Hosting<\/a>.<\/p>\n\n<p>Source available at https:\/\/github.com\/Seravo\/wp-https-domain-alias<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload plugin to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>Make sure the <code>wp-config.php<\/code> defines the needed constants.<\/li>\n<\/ol>\n\n<p>Example:<\/p>\n\n<pre><code>define('FORCE_SSL_ADMIN', true);\ndefine('HTTPS_DOMAIN_ALIAS', 'example.org');\n<\/code><\/pre>\n\n<p>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.<\/p>\n\n<p>In a WordPress Network installation the HTTPS_DOMAIN_ALIAS can be defined as *.example.org and then &lt;domain.tld&gt; will be redirected to .example.org. This plugin is designed to be compatible with\nthe WordPress MU Domain Mapping plugin.<\/p>\n\n<p>Possible values of $location when calling this function<\/p>\n\n<ul>\n<li>http:\/\/example.com<\/li>\n<li>https:\/\/example.com         &lt;- the case where https fails and we want to avoid<\/li>\n<li>http:\/\/example.example.org<\/li>\n<li>https:\/\/example.example.org &lt;- the case where https works<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt><h3>Does this work for WordPress Network?<\/h3><\/dt>\n<dd><p>Yes, since version 0.4.<\/p><\/dd>\n<dt><h3>Where is the UI?<\/h3><\/dt>\n<dd><p>This plugin has no visible UI, the magic happens automatically if the plugin is active.<\/p><\/dd>\n<dt><h3>What does FORCE_SSL_ADMIN do?<\/h3><\/dt>\n<dd><p>See http:\/\/codex.wordpress.org\/Administration_Over_SSL<\/p>\n\n<p>Note that defining FORCE_SSL_LOGIN is not needed.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>Note that complete commit log is available at https:\/\/github.com\/Seravo\/wp-https-domain-alias\/commits\/master<\/p>\n\n<h4>1.4.2<\/h4>\n\n<p>Bugfix: Only convert non-relative links to their root relative form<\/p>\n\n<h4>1.4.1<\/h4>\n\n<p>Don't try to rewrite relative urls<\/p>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Fix Polylang compatibility<\/li>\n<li>The edit.php permalink now displays the real domain, instead of alias<\/li>\n<\/ul>\n\n<h4>1.3.2<\/h4>\n\n<p>Added tests<\/p>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Wildcard domain aliases are now handled differently\nhttp:\/\/www.nonsecure.com -&gt; https:\/\/nonsecure.secure.com\nhttp:\/\/site.nonsecure.com -&gt; https:\/\/site-nonsecure.secure.com\nas opposed to previous behaviours\nhttp:\/\/www.nonsecure.com -&gt; https:\/\/www.secure.com\nhttp:\/\/site.nonsecure.com -&gt; https:\/\/site.secure.com<\/li>\n<li>Minor refactoring to the code<\/li>\n<li>Bugfixes<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Fix missing script from source files<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Includes automatic relative URLS in the front end<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Adds rewrite capabilities for all domains in multisite<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Mature enough for official 1.0 release<\/li>\n<\/ul>\n\n<h4>0.9<\/h4>\n\n<ul>\n<li>All OK!<\/li>\n<\/ul>\n\n<h4>0.8<\/h4>\n\n<ul>\n<li>Fix home_url infinite loop and thus enable rewrites for it too<\/li>\n<\/ul>\n\n<h4>0.7<\/h4>\n\n<ul>\n<li>Added debug wrapper and made sure this plugin is load first of all plugins.<\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>Bugfixes for preview mode and non-admin https pages.<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Updated readme.txt<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Enhanced to also support WordPress Network installations.<\/li>\n<li>Refactored code to be robust in all known situations.<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Merged pull request on http preview<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Improved readme.txt. Log error if the needed constants don't exist.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Enable your site to have a different domains for HTTP and HTTPS.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27223"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ottok"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27223"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27223"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27223"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27223"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27223"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}