how to use a different domain/subdomain for authors/catagories on single site?

wp-config.php if ( is_alt_domain( $_SERVER[‘SERVER_NAME’] ) ) { $domain = str_replace( ‘www.’, ”, $_SERVER[‘SERVER_NAME’] ); define( ‘WP_SITEURL’, ‘http://www.’ . $domain ); define( ‘WP_HOME’, ‘http://www.’ . $domain ); } else if (is_sub_domain( $_SERVER[‘HTTP_HOST’] ) ) { $domain = “{$_SERVER[‘HTTP_HOST’]}”; define( ‘WP_SITEURL’, ‘http://’ . $domain ); define( ‘WP_HOME’, ‘http://’ . $domain ); } else if (! (is_main_domain( … Read more

MU domain mapping login issue

Ensure sunrise.php is in the wp-content directory and that you have defined the following in wp-config.php: define( ‘SUNRISE’, ‘on’ ); With sunrise on, you should not define COOKIE_DOMAIN anywhere else as it handles that dynamically on all mapped domains. My guess is that either you don’t have define( ‘SUNRISE’, ‘on’ ); or you don’t have … Read more

Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Category Archive

Here’s two different solutions (editing the specifics for your use case): Doing a Redirect: 1.) At the top of your /wp-config.php file add the following: if ( is_yoursite_blogger_domain( $_SERVER[‘SERVER_NAME’] ) ) { $domain = str_replace( ‘www.’, ”, $_SERVER[‘SERVER_NAME’] ); define( ‘WP_SITEURL’, ‘http://’ . $domain ); define( ‘WP_HOME’, ‘http://’ . $domain ); } else if ( … Read more

Multisite Domain Mapping with SSL

A Multi-Domain (UCC) SSL certificate will allow your users to choose their own domain to display. It may be important for you to know that many Certificate Authorities have a limit to the number of certificates that can be issued for a single IP address so if you are running a large network of over … Read more

Domain mapping (without plugin) in 4.5.x multisite?

Here’s an example of a solution I configured, which leaves the site in the network, but establishes a domain map from any registered domain, to the network. It makes the network site appear to be a completely independent site, with all the functionality (log-in, etc.) intact. Goal: Map client’s registered domain, both www.foosite.com and foosite.com … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)