Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I followed wordpress guide to install multisite. My main site (mydomain.com) works well, my multisite is based on subdirectory i.e., (mydomain.com/test/), however it doesn't load at all (404 error). more details

 $ cat .htaccess

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

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

 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^ - [L]
 RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
 RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
 RewriteRule . index.php [L]

 $ cat wp-config.php

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

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

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

It will be great if you can help to fix it. thanks

share|improve this question
1  
You turned Pretty Permalinks on, presumably? Are you able to view your server's log files (access and/or error logs) to see what request is actually being made on the server? –  Pat J Jun 29 at 16:36
    
Permalinks set to default, I just enabled log define('WP_DEBUG', true); on wp-config.php, but I can't see debug.log file under /wp-content/. –  kuruvi Jun 29 at 19:40
    
More details, I reinstalled. Previously I had subdirectory in the URL (I did set under setting/general), now everything is in my root folder. After the multisite installation, I'm facing new problem, i.e., the new site does open but without any styles (html inspector says it is looking for CSS under my domain.com/test/wp-includes.......). This is of course wrong!! I'm nginx web server. How do I fix this? –  kuruvi Jun 29 at 20:17
    
I don't believe Nginx uses .htaccess files, at least not out of the box. Googling 'convert .htaccess for nginx' may help you. –  Pat J Jun 30 at 0:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.