• Resolved Heyryck

    (@heyryck)


    Hi everybody,

    I’ve installed WP and I’ve activated the network setup option in the tool menu. I’ve choosed to use subfolder, but when I’ve modified wp-config.php and .htaccess files with the istructions suggested by WP during the configuration, I wasn’t able to connect to the site anymore.

    In wp-config I added these lines

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/modules/wordpress321x120326174829/';
    define( 'DOMAIN_CURRENT_SITE', '127.0.0.1:80' );
    define( 'PATH_CURRENT_SITE', '/modules/wordpress321x120326174829/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    In .htaccess I wrote:

    RewriteEngine On
    RewriteBase /modules/wordpress321x120326174829/
    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]

    Can someone suggests what is the problem?

    Rick

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

    (@heyryck)

    I have reinstalled wp and everything works. Maybe the problem was the ip, with multisite it must be 127.0.0.1.

    Problem resolved.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite in localhost with easysphp’ is closed to new replies.