Issues with WordPress multisite setup on subdomain

I’m struggling with a WordPress multisite setup. I’ve got my main site on the root domain and a new WordPress install in a subdomain folder. I’m trying to access the new site via subdomain.domain.com.

At first, I had image problems, which I fixed. But now I’m getting errors with core files like wp-blog-header.php. Here’s what I’ve done:

  1. Added rules to the main domain’s .htaccess file
  2. Left the subdomain’s .htaccess empty
  3. Set WP_SITEURL and WP_HOME in wp-config.php

The error I’m seeing now shows a doubled subdomain in the file path. It’s looking for:

/clientdata/apache-www/b/o/domain.com/www/subdomain/subdomain/wp-blog-header.php

Any ideas why this is happening? I’m not sure where I went wrong. Help would be much appreciated!

I’ve dealt with this exact issue before, and it can be quite frustrating. The doubled subdomain in the file path suggests a misconfiguration in your server setup. Have you checked your virtual host configuration? Sometimes, the problem lies there rather than in WordPress itself.

I’d recommend reviewing your Apache or Nginx config files, particularly the DocumentRoot directive for your subdomain.

Another thing to consider is your DNS settings. Ensure that your subdomain is correctly pointed to the right directory on your server. It’s easy to overlook this step, but it can cause strange behavior like what you’re experiencing.

Lastly, double-check your wp-config.php file in the subdomain folder. Make sure all paths are absolute and correct. Sometimes, relative paths can cause unexpected issues in multisite setups.

If none of these solve the problem, you might want to consider temporarily disabling any plugins or custom themes to rule out conflicts. Multisite can be tricky, but with some persistence, you’ll get it sorted out.

hey grace, i had similar issues. check ur apache config - might b doubling the subdomain path. also, make sure ur wp-config.php in the subdomain folder has correct path definitions. sometimes its tricky but keep at it! good luck :slight_smile:

Grace, I’ve encountered similar issues with WordPress multisite setups. The doubled subdomain in the file path suggests a problem with your server configuration rather than WordPress itself. Check your virtual host settings in Apache or Nginx, specifically the DocumentRoot directive for your subdomain. It’s likely pointing to the wrong directory.

Also, review your DNS settings to ensure the subdomain is correctly pointed. Sometimes, this can cause unexpected behavior. In your wp-config.php, use absolute paths instead of relative ones. This can prevent path-related errors in multisite configurations.

If these steps don’t resolve the issue, consider temporarily disabling plugins and switching to a default theme to rule out conflicts. Multisite setups can be complex, but with careful troubleshooting, you’ll get it working.