Wordpress network sites do not work

Posted November 19, 2016 2.2k views
WordPressUbuntu 16.04

So I have a problem that has had me beating my head in for several hours and I can’t seem to make nay headway. Short question. My main wordpress site works, but none of my wordpress network sites seem to work.

From what I can gather the common problem seems to be AllowOverride in the 000-default.conf not being set to AllowOverride ALL , but it is set to ALL ex:

<VirtualHost *:80>
        DocumentRoot /var/www/html

        <Directory /var/www/html/>
            Options Indexes FollowSymLinks Multiviews
            AllowOverride ALL
            Require all granted

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

Also some other places mentioned that it could be a2enmod is not set to rewrite. Well when I run the command

sudo a2enmod rewrite

I get: Module rewrite already enabled

At this point I am kind of scratching my head. I have destroyed the droplet several times and rebuilt it, but I keep having this trouble. I have to be missing something, but for the life of me I can’t figure it out. I am using the prebuilt wordpress 16.04 droplet. Here is a copy of the Multisite part of the wp-config.php file as well.

/* Multisite */
define('WP_ALLOW_MULTISITE', true);

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', '');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);



These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Just a followup. I was able to resolve the problem. For anyone else having the same issue I had to add a * and point it to my ip address in the A section of the DNS. Once that was done all my multi sites started to work.