Title: SSL Subdomain for Multisite
Author: Van Patten Media
Published: <strong>Marso 7, 2012</strong>
Last modified: Marso 28, 2012

---

Maghanap ng mga plugin

Ang plugin na ito ay **hindi pa nasusubukan sa pinakabagong 3 major release ng WordPress**.
Maaaring hindi na ito minamantine o sinusuportahan at maaaring may mga isyu sa compatibility
kapag ginamit sa mas bagong bersyon ng WordPress.

![](https://s.w.org/plugins/geopattern-icon/ssl-subdomain-for-multisite.svg)

# SSL Subdomain for Multisite

 Ni [Van Patten Media](https://profiles.wordpress.org/vanpattenmedia/)

[I-download](https://downloads.wordpress.org/plugin/ssl-subdomain-for-multisite.1.1.zip)

 * [Mga Detalye](https://tl.wordpress.org/plugins/ssl-subdomain-for-multisite/#description)
 * [Mga Review](https://tl.wordpress.org/plugins/ssl-subdomain-for-multisite/#reviews)
 *  [Pag-install](https://tl.wordpress.org/plugins/ssl-subdomain-for-multisite/#installation)
 * [Development](https://tl.wordpress.org/plugins/ssl-subdomain-for-multisite/#developers)

 [Suporta](https://wordpress.org/support/plugin/ssl-subdomain-for-multisite/)

## Deskripsyon

Ensures logins are always done via SSL on a subdomain of the master domain, but 
that access to custom domains are always done over HTTP, to avoid certificate errors.
For WordPress Multisite.

WordPress’ built-in `FORCE_SSL_LOGIN` and `FORCE_SSL_ADMIN` directives in `wp-config.
php` work great, but are too restrictive in situations where you have custom domains—
custom domains for which you cannot have SSL certificates. For sites on custom domains,
we need to make sure that the login and admin access happens over the subdomain,
which can be properly served over HTTPS.

#### What this Plugin does (incorporating Foolish Assumptions)

_or, a readme you **should** read before implementing this plugin on your site._

This plugin filters the login, logout, home and admin URLs that WordPress uses to
generate its internal links.

Why do we do this?

#### The Scenario

We have a WordPress Multisite network. Let’s call it `mynetwork.com`. We bought 
a fancy SSL wildcard certificate so we can offer `*.mynetwork.com` over a secure
connection.

We’d very much like to use this secure connection for all logins, and for all admin
access.

We also allow sites on this network to use a custom domain — like `demo-site.com`.
We might be using [WPMU Domain Mapping](https://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/)
to achieve this. These sites have two domains, then — `demo-site.com` and `demo-
site.mynetwork.com`.

If we switch on `FORCE_SSL_LOGIN` or `FORCE_SSL_ADMIN`, we have a problem. When 
users go to `https://demo-site.com/wp-login.php`, they get a certificate error. 
We have a wildcard certificate for `*.mynetwork.com`, but we can’t possibly have
a valid SSL certificate installed for every custom domain!

Instead, we want to force all login pages and admin pages to be:

    ```
    https://demo-site.mynetwork.com/wp-admin/… 
    ```

We want all regular access to be:

    ```
    http://demo-site.com/… 
    ```

This plugin facilitates that — rewriting the `wp-login` (including logout) and `
wp-admin` URLs to the first example, and rewriting all the others to the second 
style.

#### Foolish Assumptions

This plugin makes some (foolish) assumptions about your multisite network. You must
make sure that these assumptions are true for your site, or you will find that this
plugin may have unintended consequences and break things that are difficult to fix
without manually disabling the plugin.

 1.  Your subdomains are in the format: `a.b`
 2.  > where `a` is, for example: `demo-site`. `b` is, for example: `mynetwork.com`.`
     > a` **must** be a single domain component. (`a` can’t be, for example: `demo.
     > site`)
 3.  Your wildcard certificate is configured properly for:
 4.   * `*.mynetwork.com`
      * your network site URL
 5.  So if your network site URL is `www.mynetwork.com`, your wildcard cert will be
     fine. If it is just `mynetwork.com`, you will need another cert to avoid errors
     when you go to `https://mynetwork.com/wp-admin`.)
 6.  Your site already has the custom domains working.
 7.   * I suggest the excellent [WPMU Domain Mapping](https://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/)
        for this.
         - Your web server also needs to be [set up](http://www.lampjunkie.com/2008/05/how-to-set-up-a-wildcard-catch-all-virtual-host-in-apache/)
           to handle hosting a wildcard name virtual host. All of this is really part
           of the WPMU Domain Mapping set up, and not the set up for this plugin. I’m
           just, you know, mentioning it.
 8.  You have the `FORCE_SSL_LOGIN` setting in `wp-config.php` **true**.
 9.  You have the `FORCE_SSL_ADMIN` setting in `wp-config.php` **false**. We’ll handle
     that — WordPress’ forcing of SSL admins will conflict with this plugin.

## Pag-install

 1. Set up custom domains, perhaps using [WPMU Domain Mapping](https://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/).
 2. Configure your web server with your wildcard certificate for your master domain(
    for example `*.mynetwork.com`).
 3. Set `FORCE_SSL_LOGIN` to **true** in `wp-config.php`.
 4. Upload `ssl-subdomain-for-multisite.php` to your `mu-plugins` folder.

## Mga Review

Wala pang reviews para sa plugin na ito.

## Mga Contributor at Developer

Ang “SSL Subdomain for Multisite” ay open source software. Ang mga sumusunod na 
tao ay nag-ambag sa plugin na ito.

Mga Contributor

 *   [ Van Patten Media ](https://profiles.wordpress.org/vanpattenmedia/)

[Isalin ang “SSL Subdomain for Multisite” sa iyong wika.](https://translate.wordpress.org/projects/wp-plugins/ssl-subdomain-for-multisite)

### Interesado sa development?

[Tingnan ang code](https://plugins.trac.wordpress.org/browser/ssl-subdomain-for-multisite/),
i-check ang [SVN repository](https://plugins.svn.wordpress.org/ssl-subdomain-for-multisite/),
o mag-subscribe sa [development log](https://plugins.trac.wordpress.org/log/ssl-subdomain-for-multisite/)
sa pamamagitan ng [RSS](https://plugins.trac.wordpress.org/log/ssl-subdomain-for-multisite/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1

 * Fix a bug where the ‘Dashboard’ link on the Network Sites page would point to
   an incorrect domain in some installations of WordPress Multisite. Thanks to Rob
   Mint.

#### 1.0

 * Initial release.

## Meta

 *  Bersyon **1.1**
 *  Huling na-update **14 taon ang nakalipas**
 *  Mga aktibong installation **Wala pang 10**
 *  Bersyon ng WordPress ** 3.3.1 o mas bago **
 *  Sinubukan hanggang **3.3.2**
 *  Wika
 * [English (US)](https://wordpress.org/plugins/ssl-subdomain-for-multisite/)
 * Mga Tag
 * [https](https://tl.wordpress.org/plugins/tags/https/)[mu](https://tl.wordpress.org/plugins/tags/mu/)
   [multisite](https://tl.wordpress.org/plugins/tags/multisite/)[ssl](https://tl.wordpress.org/plugins/tags/ssl/)
 *  [Advanced View](https://tl.wordpress.org/plugins/ssl-subdomain-for-multisite/advanced/)

## Mga Rating

 1 out of 5 stars.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/ssl-subdomain-for-multisite/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/ssl-subdomain-for-multisite/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/ssl-subdomain-for-multisite/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/ssl-subdomain-for-multisite/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/ssl-subdomain-for-multisite/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ssl-subdomain-for-multisite/reviews/#new-post)

[Tingnan lahat ng review](https://wordpress.org/support/plugin/ssl-subdomain-for-multisite/reviews/)

## Mga Contributor

 *   [ Van Patten Media ](https://profiles.wordpress.org/vanpattenmedia/)

## Suporta

May gusto kang sabihin? Kailangan ng tulong?

 [Tingnan ang support forum](https://wordpress.org/support/plugin/ssl-subdomain-for-multisite/)