• Trying to setup a subdirectory multisite install on a local bitnami install, but when I go to localhost/wordpress/wp-admin it redirects me to localhost/wordpress/

    All plugins are turned off and the mainsite’s theme is on twenty fifteen.

    Here’s my htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    
    # END WordPress

    and my wp-config

    define('WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'localhost');
    define('PATH_CURRENT_SITE', '/wordpress/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    If I set define(‘MULTISITE’,false) I can access the dashboard, but otherwise I’m stuck.

    Any suggestions?

Viewing 1 replies (of 1 total)
  • Thread Starter chasewg

    (@chasewg)

    Interesting additional point of info: I had assumed that this problem was due to an error in my .htaccess code, however the redirect seems to be entirely based on the ‘DOMAIN_CURRENT_SITE’ and ‘PATH_CURRENT_SITE’ issues.

    Hopefully someone can help with this, it’s maddening having to reconfigure my local wordpress setup every time I want to work on a different client’s project…

Viewing 1 replies (of 1 total)
  • The topic ‘MultiSite Installation in localhost/wordpress/’ is closed to new replies.