Tag : multisite
Tag : multisite
After installation of core wordpress if you want to setup wordpress multisite on same installation then do as follow.
/* Multisite */
define('t2vhyu85e1_ALLOW_MULTISITE', true);
Wordpress will ask you setup multisite of two type…
Select Sub-Domain type as it required for setup different domain. After wordpress network setup correctly logout and login back.
Add different domain on single wordpress code.
DNS settings
Now one thing we have to do related with domain name, we need to point www.newsite.com to www.ask4solution.org of document root. WordPress will serve www.newsite.com on the same installation.
 WP-CONFIG setting
We need to set cookie domain
if(stristr($_SERVER['HTTP_HOST'],
'newsite.com'))
{
define('COOKIE_DOMAIN','.newsite.com');
}
else{
define('COOKIE_DOMAIN',
'.ask4solution.org');
}
Categories: Wordpress