Linux 软件免费装

WordPress MU Domain Mapping

开发者 donncha
wpmuguru
automattic
更新时间 2016年12月9日 18:50
PHP版本: 3.1 及以上
WordPress版本: 4.7

标签

multisite wordpressmu domain-mapping

下载

0.2 0.4.2 0.5.1 0.5.2 0.5.3 0.5.4 0.5.4.1 0.5.4.2 0.5.4.3 0.5.5.1 0.1 0.3 0.4 0.4.1 0.4.3 0.5 0.5.5

详情介绍:

This plugin allows users of a WordPress MU site or WordPress 3.0 network to map their blog/site to another domain. It requires manual installation as one file must be copied to wp-content/. When upgrading the plugin, remember to update domain_mapping.php and sunrise.php. Full instructions are on the Installation page and are quite easy to follow. You should also read this page too. Super administrators must configure the plugin in Super Admin->Domain Mapping. You must enter the IP or IP addresses (comma deliminated) of your server on this page. The addresses are purely for documentation purposes so the user knows what they are (so users can set up their DNS correctly). They do nothing special in the plugin, they're only printed for the user to see. You may also define a CNAME on this page. It will most likely be the domain name of your network. See below for some restrictions and warnings. Your users should go to Tools->Domain Mapping where they can add or delete domains. One domain must be set as the primary domain for the blog. When mapping a domain, (like 'example.com') your users must create an A record in their DNS pointing at that IP address. They should use multiple A records if your server uses more than one IP address. If your user is mapping a hostname of a domain (sometimes called a "subdomain") like www.example.com or blog.example.com it's sufficient to create a CNAME record pointing at their blog url (NOT IP address). The login page will almost always redirect back to the blog's original domain for login to ensure the user is logged in on the original network as well as the domain mapped one. For security reasons remote login is disabled if you allow users to use their Dashboard on the mapped domain. Super admins can now choose to either allow users to setup DNS ANAME records by supplying an IP (or list of IP addresses) or set a CNAME but not both (entering a CNAME for the end user voids the use of IP's) There is a lot of debate on the handling of DNS using CNAME and ANAME so both methods are available depending on your preference and setup. Things to remember:

安装:

  1. Install the plugin in the usual way into the regular WordPress plugins folder. Network activate the plugin.
  2. Move sunrise.php into wp-content/. If there is a sunrise.php there already, you'll just have to merge them as best you can.
  3. Edit wp-config.php and uncomment or add the SUNRISE definition line. If it does not exist please ensure it's on the line above the last "require_once" command. define( 'SUNRISE', 'on' );
  4. As a "super admin", visit Super Admin->Domain Mapping to create the domain mapping database table and set the server IP address or a domain to point CNAME records at.
  5. Make sure the default Apache virtual host points at your WordPress MU site or WordPress 3.0 network so it will handle unknown domains correctly. On some hosts you may be required to get a dedicated IP address. A quick check: in a web broswer, type in the IP address of your install. If you are using CPanel, use the Park a Domain menu to set the mapped domain to your main installtion.
  6. Do not define COOKIE_DOMAIN in your wp-config.php as it conflicts with logins on your mapped domains. Illustrated installation instructions can be found here but you can ignore the instructions to place domain_mapping.php in mu-plugins. Thanks Otto.
Configuration On Super Admin->Domain Mapping you can configure the following settings:
  1. "Remote Login" can be disabled. Useful if you're hosting totally separate websites.
  2. "Permanent redirect" uses a 301 redirect rather than 302 to send visitors to your domain mapped site.
  3. "User domain mapping page" allows you to disable Settings->Domain Mapping that the user uses.
  4. "Redirect administration pages to network's original domain (remote login disabled if this redirect is disabled)" - with this checked, if a user visits their dashboard on a mapped domain it will redirect to the dashboard on the non mapped domain. If you don't want this, remote login will be disabled for security reasons.
  5. "Disable primary domain check. Sites will not redirect to one domain name. May cause duplicate content issues." - ignore the primary domain setting on your sites. The same content will be available on multiple domains and may cause problems with Google because of duplicate content issues.
Super Admin->Domains allows you to edit the domains mapped to any sites on your network. For Cpanel users If your domain uses the nameservers on your hosting account you should follow these instructions. If the nameservers are elsewhere change the A record or CNAME as documented above. Add a wildcard subdomain/virtual host record to your site's DNS record in Web Host Manager (WHM). If you do not have access to WHM, you must email your web host and ask them to make this one change for you. Should be no problem: From Cpanel, click on the "Parked Domains" under the "Domains" section: Now you're ready to do your domain mapping.

升级注意事项:

0.5.5.1
  • revert to 0.5.4.3 domain_mapping.php
0.5.5
  • fix warnings
0.5.4.2 WordPress 3.3 compatibility, bugfixes Set $current_site->site_name 0.5.4.1 WordPress 3.2 compatibility, bugfixes 0.5.4 WordPress 3.1 compatibility, localization, IDN warnings, settings page updates, support for SSL and lots of bugfixes

更新日志:

0.5.4 0.5.3 0.5.2 0.5.1 0.5 0.4.3 0.4.2 0.4.1 0.4