• Resolved Joakim N

    (@joakim-n)


    Hi,

    I’m trying to set up a multi site on the latest word press. When I add a new website, in wordpress it looks okay, but when I visit the site or the wp-admin part of it it gives me a 404 error.

    I’ve looked though the support forums here and tried all the solutions people have been suggested, but I’m still not having any luck.

    I am running this on the latest debian with apache2.

    My .htaccess looks like this:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    The multi site part of my wp-config.php looks like this:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'webbapp.habo.se' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    mod_rewrite is running according to the <?php phpinfo(); ?>

    File rights is 644 and folder rights is 755 as per default. The blogs.dir have the same rights set. Everything is owned by www-data.

    Obviosly I must have missed something, but I don’t know what that could be.

    Help will be much appreciated! ??

    Thanks!
    Joakim

Viewing 1 replies (of 1 total)
  • Thread Starter Joakim N

    (@joakim-n)

    Figured it out. An installation of another program had re-written my 000-default file in sites-enabled (why, I don’t know), so I had to change it again so AllowOverride all

Viewing 1 replies (of 1 total)
  • The topic ‘path-based multi site gives 404 error’ is closed to new replies.