• spirosnikos

    (@spirosnikos)


    I have just created a multi site. On my hosting it now says it is a multi site. on word press it also has the features of a multisite “my sites” etc. However, when i go to create new site and then try to go to that dashboard or site it can not be found. I then went to create subdomain on the hosting and when i did that the site worked and the dashboard worked however it would direct me to a separate dashboard that is not connected to the multi site. therefore, it did not work. Can anyone help?

Viewing 1 replies (of 1 total)
  • mayuripatel

    (@mayuripatel)

    Hello @spirosnikos

    1. Check WordPress Multisite Configuration

    below code should be added in wp-config.php file

    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true); // If you're using subdomains (i.e., site1.yoursite.com)
    define('DOMAIN_CURRENT_SITE', 'yoursite.com'); // Your main site domain
    define('PATH_CURRENT_SITE', '/'); // The root directory
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    .htaccess file should have below rules

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

    # Add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/wp-admin$) $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]

    2. check Proper Subdomain in cPanel/Hosting

    Create Subdomains in cPanel: In cPanel create subdomains for each site you add. create a wildcard subdomain (i.e., *.yoursite.com) so that any subdomain (e.g., site1.yoursite.com, site2.yoursite.com) automatically routes to your WordPress installation.

    Clear browser cache and WordPress cache after making changes

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.