• I just installed new version of WP 4.8 and set it up as multisite. I have no problems to access wp-admin on all sub-domains I set. I have no problems to create/edit posts/pages. However when I try to access post/page I’m getting 404 page.
    Here is my .htaccess:
    RewriteEngine On
    RewriteBase /mybase/
    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 in wp-config.php I have following:
    define(‘WP_ALLOW_MULTISITE’, true);
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘localhost.com’);
    define(PATH_CURRENT_SITE’, ‘/mybase/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’);

    Thank you for help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Since this is local install, chances are the Apache rewrite module is not enabled in your local server. Do you still get 404s when you switch to the “plain” (ugly) permalinks?

    • This reply was modified 7 years, 4 months ago by George Appiah.
    Thread Starter prokurator

    (@prokurator)

    No, this is not the problem. mod rewrite is installed and works properly. I have single WordPress installation along side with multi one and single works just fine and properly displays posts and pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite WP produces 404 on all posts and pages’ is closed to new replies.