• Hi,

    I try to convert one wordpress to multisite. The main website is working well. Once I open My Sites => app.marbasket.com => Dashboard, it errors “404 Not Found” and the website come up with “This is default server vhost. There is nothing here. I follow the step to set up the multisite, but I don’t know whether I miss any.

    Add code in wp_config.php

    /*Multisite*/
    define('WP_ALLOW_MULTISITE', true);
    
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    define('DOMAIN_CURRENT_SITE', 'www.marbasket.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    
    /* That's all, stop editing! Happy publishing. */

    Code in file.htaccess

    # HTTPS forced by SG-Optimizer
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{HTTP_HOST} !^www\. [NC]
        RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
        RewriteCond %{HTTP:X-Forwarded-Proto} !https
        RewriteCond %{HTTPS} off
        RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    </IfModule>
    # END HTTPS
    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    
    SetEnv PHPRC/Home/Customer/www/marbasket.com/public_html/php.ini
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    
    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]
    </IfModule>
    
    # END WordPress

    Please kindly help to advise.
    thank you

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi
    Did you setup wildcard domains in your CPanel? you’ll need to do this to ensure any subsite is recognised as a subdomain of, marbasket.com Your wild card should look like this:
    *.marbasket.com

    Also noticed in your settings:
    define(‘DOMAIN_CURRENT_SITE’, ‘www.marbasket.com’);
    You may not need the ‘www’ part – though it may be option

    Thread Starter mildqqwild

    (@mildqqwild)

    Hi,
    Thank you. I have done set up subdomain and open wild card, but it still error as above. I cannot take www out. The network will get error.

    The page errors with ;
    404 – Not found
    We searched the space, but we couldn’t find the page you’re looking for.

    Anyway, I decide to stop to change my website to multisite. I try to make one multisite from the beginning and it has no problem. I may try to start multisite again, not convert site to multisite.

    thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite’ is closed to new replies.