Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter runlos

    (@runlos)

    Ok, i found a solution. If someone else with this problem is out there, this is what worked:
    from this thread, Network Admin Links 404 Error , the following .htaccess (placed in root):

    # BEGIN WordPress
    <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).*) wordpress/$1 [L]
    RewriteRule ^(.*\.php)$ wordpress/$1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress

    With wp-config:

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

    And in the database under wp_’blog-id’_options, option_name siteurl the option_value was changed from site.com/site2 to site.com

    Now it all seems to work fine.

    Thread Starter runlos

    (@runlos)

    Edit(Couldn’t edit the post):
    I should add that in my wp-config multisite setup looks like this:

    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'ryfylkefjordhotel.no');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    where if i change define('PATH_CURRENT_SITE', '/'); to define('PATH_CURRENT_SITE', '/wordpress'); i get access to wp-admin, but not the wp-admin/network, which ends up in a redirect loop. This may also be a important part of the issue im dealing with.

    if i rewrite my .htaccess to this:

    # BEGIN WordPress
    <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).*) wordpress/$1 [L]
    RewriteRule ^(.*\.php)$ wordpress/$1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress

    I can access every thing just fine, but the styles for site.com/site2/ is broken because all the paths to the wp-includes are are changed to site.com/site2/wp-includes. the site2 part should not be there.

    Thread Starter runlos

    (@runlos)

    Thank you! The custom CSS worked great!

    Thread Starter runlos

    (@runlos)

    Hi Phil,

    Thanks for the quick response

    Turns out the theme i’m using, came with a stripped bootstrap.js, without the carousel function. So i replaced it with bootstraps default one, and now it seems to be working as it should 😉

Viewing 4 replies - 1 through 4 (of 4 total)