AI助手支持GPT4.0
Domainer lets you route custom domain names to specific sites on your Multisite installation.
Domainer使您可以将自定义域名路由到多站点安装中的特定站点。
That’s it.
就是这样。 p>
Each domain has 4 options you set:
每个域都设置了4个选项: p>
pick from a list of existing sites on your network.
从网络上现有站点的列表中选择。 li>
ul>
li>
ol>
In order to reduce redirects while navigating the site, Domainer will replaced all instances of the site’s original domain name on the pages to that of the primary domain, or currently requested alias domain.
为了减少在浏览网站时的重定向,Domainer会将页面上网站原始域名的所有实例替换为主要域名或当前请求的别名域名。
This will not affect email addresses however;
但是,这不会影响电子邮件地址;
any filters on the content will only replace instances starting with a double slash so as to match URLs.
内容上的所有过滤器都只会替换以双斜杠开头的实例,以匹配URL。 p>
If you find instances of the domain not being replaced, such as in content filtered by 3rd party plugins, you can patch it with this function:
如果您发现该域的实例未被替换,例如在由第三方插件过滤的内容中,则可以使用以下功能对其进行修补: p>
add_filter( 'my_filter', 'domainer_rewrite_url' ); add_filter('my_filter','domainer_rewrite_url'); code> pre>The function can also take a domain or array of domains to replace, as well as a specific domain to replace with.该函数还可以使用一个域或一组域来替换,以及要替换的特定域。 p>
add_filter('my_filter','domainer_rewrite_url');
code> pre>
The function can also take a domain or array of domains to replace, as well as a specific domain to replace with.
该函数还可以使用一个域或一组域来替换,以及要替换的特定域。 p>
domainer.tar.gz
/wp-content/plugins/
domainer.tar.gz code>的内容上传到您的 / wp-content / plugins / code>目录。 li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>Assuming the system is unable to take care of it automatically:假设系统无法自动处理:Copy the sunrise.php file to /wp-content/.将Sunrise.php文件复制到 / wp-content / code>。 li>Add define('SUNRISE', true); to your wp-config.php file, anywhere above the ABSPATH line.<将 define('SUNRISE',true); code>添加到 wp-config.php code>文件中的 ABSPATH code>行上方的任意位置。 /li>/ li> ol> li>Start adding domains under Network Admin > Domains.开始在“网络管理员”>“域”下添加域。 li>
/ wp-content / plugins / code>目录。 li>Activate the plugin through the ‘Plugins’ menu in WordPress.通过WordPress中的“插件”菜单激活插件。 li>Assuming the system is unable to take care of it automatically:假设系统无法自动处理:Copy the sunrise.php file to /wp-content/.将Sunrise.php文件复制到 / wp-content / code>。 li>Add define('SUNRISE', true); to your wp-config.php file, anywhere above the ABSPATH line.<将 define('SUNRISE',true); code>添加到 wp-config.php code>文件中的 ABSPATH code>行上方的任意位置。 /li>/ li> ol> li>Start adding domains under Network Admin > Domains.开始在“网络管理员”>“域”下添加域。 li>
/wp-content/
/ wp-content / code>。 li>Add define('SUNRISE', true); to your wp-config.php file, anywhere above the ABSPATH line.<将 define('SUNRISE',true); code>添加到 wp-config.php code>文件中的 ABSPATH code>行上方的任意位置。 /li>/ li>
define('SUNRISE', true);
wp-config.php
ABSPATH
define('SUNRISE',true); code>添加到 wp-config.php code>文件中的 ABSPATH code>行上方的任意位置。 /li>/ li>
wp-config.php code>文件中的 ABSPATH code>行上方的任意位置。 /li>/ li>
ABSPATH code>行上方的任意位置。 /li>/ li>
/li>
/ li>
原文出处:http://www.sanshu.cn/a/11408.html
群主管理都是支付大佬