Hot answers tagged

35 votes
Accepted

Cookies in multisite where network sites have their own domain name

First clear your browser's cache (including cookies) and your server's cache (cache plugins, etc.) Then set the following in your wp-config.php file: define('ADMIN_COOKIE_PATH', '/'); define('...
user avatar
  • 1,139
31 votes
Accepted

How to use Wordpress Multisite With Different Domain Names?

There seems to always be a bit on confusion on this topic. Perhaps WordPress could do a better job guiding it's users in this process. Although, I suppose Multi-site wasn't intended to be used for TLD'...
user avatar
15 votes
Accepted

Can you run wordpress with multiple domains at the same time (not multisite)?

Are you wanting for the exact same WordPress site to work on two different domain names, where all links and content would use either domain name? If this were the case, you would run into Duplicate ...
user avatar
11 votes

After Moving a Site to Another Domain, All Images Are Lost

It sounds like you need to change the URLs for the old images. The easiest & quickest way of doing that is to do a find and replace on the MySQL database. You can use PHPMyAdmin (usually provided ...
user avatar
9 votes

Cookies in multisite where network sites have their own domain name

Using WordPress version 4.9.4. I was getting the cookie error and looked through various help options and eventually solved it by using a parts of Scott's fix. (Note: I didn't do any cookie cache ...
user avatar
7 votes

How to use Wordpress Multisite With Different Domain Names?

WordPress now has a support article on this. Essentially the recommended steps are as outlined by David & Michael: Map the domain name in DNS to your server Make sure this domain is registered on ...
user avatar
  • 71
6 votes

How to share cookies and sessions between domain and subdomain?

I'll skip steps related to sharing DB and sharing users data and meta, based on assumption that you've done it correctly. Let's concentrate on wp-config.php of both sites. These are defines that MUST ...
user avatar
5 votes
Accepted

Redirecting to old domain, tried everything, nothing works

As Sumit pointed out, the problem was in the old browser cache. The solution was to clear browser cache (or just add a query string after the address: http://my.new.domain/?random_string). Thank you.
user avatar
  • 161
5 votes

How to use Wordpress Multisite With Different Domain Names?

It was made possible without using a plugin a few releases ago (can't remember the concrete release but the feature has been there for a while now). However, if you start from scratch, you should ...
user avatar
  • 3,139
4 votes
Accepted

Moving to a new domain in the same server

You are facing the error because the database tables have old domain stored in all tables and post meta data. You need to replace all instances of previous domain with the new one in the database, ...
user avatar
  • 3,144
4 votes
Accepted

Htaccess for Wordpess set on single subdomain

My suggestion is: use the same standard .htaccess configuration for Wordpress on a single domain in each Wordpress directory. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ...
user avatar
  • 7,184
4 votes

Cookies in multisite where network sites have their own domain name

Finally after hours, literally, of troubleshooting I was able to get this resolved on the AWS Lightsail Bitnami Multisite Wordpress (WordPress 5.0.4) instance by performing the following: Ensure the ...
user avatar
3 votes

Can you run wordpress with multiple domains at the same time (not multisite)?

Just check this WordPress Plugin it should resolve this issue easy way.. https://wordpress.org/plugins/multiple-domain/
user avatar
3 votes

How to limit user registration to a specific set of domains?

You can do it easily by writing a code inside your theme's functions.php file. here is the code: function is_valid_email_domain($login, $email, $errors ){ $valid_email_domains = array("gmail.com"...
user avatar
3 votes

How to use alias domain for multisite installation?

Domain Mapping via Core You don’t need to use the domain mapping plugin if you are planning on running a WordPress Multisite with top-level domains and/or sudomains. WordPress allows you to change a ...
user avatar
  • 16.7k
3 votes

Website redirecting to old domain name

@maximus: It's not a good idea to run raw SQL queries on the database via phpmyadmin; direct queries will will break serialized data in the database, i.e. break widget data, theme options, etc. Use ...
user avatar
  • 8,478
3 votes
Accepted

Website redirecting to old domain name

There are a few variables that need to be changed in order for you to update to the new link on your WordPress site. As mentioned by Mark, try the following steps using the Search Replace DB tool: ...
user avatar
3 votes

How Can I Change The Name Of My Subdomain in Wordpress Multisite

In your admin dashboard, go to the my sites->network admin->sites, edit the site and change the subdomain URL, there. No need to touch any files.
user avatar
  • 1,928
3 votes

Inherited website changing CSS/JS path

I would first remove any plugins that are not needed, or any that haven't been updated for a while. Then I would install all updates (themes and plugins) and reinstall WP (all from the Admin, Update ...
user avatar
3 votes
Accepted

WP Multisite - domain mapping to domain.com and separate site to domain.com/help

Yes, this is possible (see https://wordpress.org/support/article/create-a-network/). For sub-domains you'll need to confirm that your DNS has a wildcard entry for your domain. So, based on your root ...
user avatar
3 votes

Migrate a WP website from a single-server single-domain to a multi-server multi-domain installation

The simplest way to create identical websites on different domains is to use the plugin Multiple Domain. This allows you to have a single WP install with one database serving two domains. Next step is ...
user avatar
  • 1,747
3 votes
Accepted

How do I use different domain for subdomains in WP Multisite?

Let's establish the baseline: it is possible to have the main site in example-domain-x.com and all subsites subdomains in example-domain-y.com. You just add subdomain1.example-domain-y.com (or ...
user avatar
  • 1,033
2 votes
Accepted

Wordpress live site images not displaying

You can either use the SQL query or use the Velvet Blues WordPress plugin. Via SQL UPDATE wp_posts SET post_content = REPLACE(post_content, 'localhost/test/', 'www.yourlivesite.com/'); This will ...
user avatar
  • 768
2 votes

How to Create a Cookieless Domain in Wordpress

Using "cookieless" domain for serving static assets is common recommendation performance tools give. The reasoning being that cookies do nothing at all for such files, but still consume resources. It ...
user avatar
  • 97.8k
2 votes
Accepted

How would you detect if WordPress is installed in a subdirectory (not root)?

You need to check if the siteurl differs from the home URL: if ( get_option( 'siteurl' ) !== get_option( 'home' ) ) { // whatever This also works if home is a subdirectory of the root, with ...
user avatar
  • 7,409
2 votes
Accepted

WordPress multisite with domain mapping and virtual host on local with fake domain

DocumentRoot for each VirtualHost should point to the directory where you installed WP multisite. There is no actual directory for subsites, they're all virtual. Using your example: <VirtualHost ...
user avatar
  • 520
2 votes

Cookies in multisite where network sites have their own domain name

I just finished troubleshooting a similar issue with subdomain multisite. With: define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']); The site was still throwing a cookie error and in some instances of ...
user avatar
2 votes
Accepted

Multiple Multisite networks on the same domain?

You can not run different networks or different Multisite installations under one domain in the default possibilities of WP. But you can use one Multiste with multiple networks with the help of a ...
user avatar
  • 16.7k
2 votes
Accepted

How do I make my particular WordPress public?

Let's assume you've installed WordPress as described here, directly in a folders named 816 under your xampp/htdocs/, and this, without any alterations (modifying settings or any configurations to ...
user avatar
2 votes
Accepted

looking for a hosting company for wordpress

WordPress is extremely lenient to the hosting requirements. It is likely one of the most forgiving CMSes to run on the least capable PHP hosts. That said there are advantages to some of hosts that ...
user avatar
  • 97.8k

Only top scored, non community-wiki answers of a minimum length are eligible