• Good afternoon guys,
    I want to setup a wordpress multisite hosted in DO and working with serverpilot.
    When I change the .htaccess all my pages are returnin 404 error.

    I have to say this first, before i change the files wordpress notifies me this:

    Server Address
    
    We recommend you change your siteurl to site.com
     before enabling the network feature.
    It will still be possible to visit your site using
    the www prefix with an address like www.site.com
     but any links will not have the www prefix.
    Server Address 	The internet address of
     your network will be www.site.com.

    So to enable multisite is really important that my website doesn’t have the www prefix?

    Here is my .htaccess file

    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]

    and my wp-config.php file

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'www.site.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    Thank you very much for your help 🙂

The topic ‘WordPress Multisite DO Serverilot’ is closed to new replies.