• I have a working wordpress site running the semplice theme here: https://cleverevans.com. I recently changed it to a multisite. I created two subdomains through my host’s cpanel: ux.cleverevans.com and art.cleverevans.com. On cPanel, I redirected those subdomains to cleverevans.com/ux/ and cleverevans.com/art/, respectively.

    I followed the directions here to create a network.

    at cleverevans.com/wp-admin/, I now see “my sites” at the top. There are links to navigate to the dashboards for each of my new sites. However, whenever I navigate to either https://ux.cleverevans.com/wp-admin/ or https://art.cleverevans.com/wp-admin/, I get the error “The requested URL /wp-admin/ was not found on this server.”

    Here’s what I added to my wp-config.php file, verbatim:

    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘cleverevans.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);
    define(‘WP_HOME’,’https://cleverevans.com’);
    define(‘WP_SITEURL’,’https://cleverevans.com’);

    /* That’s all, stop editing! Happy blogging. */

    And here’s what my .htaccess file looks like:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    What am I missing?
    I have searched through the forums here for help, but I don’t want to risk screwing things up farther while trying things willy-nilly.

    Thanks for any and all assistance.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you edited your apache.conf to enable .htaccess in <Directory> directive by setting ‘AllowOverride All’ for your website root?

    Thread Starter cleverevans

    (@cleverevans)

    @matthewbrain: I have not edited my apache.conf. How do I do that? Where do I locate the apache.conf file?

    However, I am getting warmer. I hadn’t set up my redirects as wild card redirects. That’s been fixed. Now, if I navigate from the cleverevans.com dashboard to either of my subdomain dashboards, I get a 404 error and it takes me to an address that looks like this: https://cleverevans.com/uxwp-admin/

    If I try to navigate to, say, https://cleverevans.com/uxwp-admin/post-new.php I get this:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Presently re-reading through Create A network documentation again, but if anyone else has any ideas, they would be greatly appreciated.

    To be honest I’m not sure. You’re using cPanel, which is like a borg, and it messes up all the configuration files (i.e. it has its own defaults where to keep them). I’m not sure how would you change that. When I enabled .htaccess I was following this guide (see enable .htaccess section):

    https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04

    But this does not apply to you because of the cPanel.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting 404 error on multisite subdomain’ is closed to new replies.