WordPress.org

Support

Support » Multisite » using dev url (IP/~username) with multisite

using dev url (IP/~username) with multisite

  • Main site works fine but can’t access dash of sub sites getting a “The page isn’t redirecting properly” message on the browser.

    Got a network setup as sub-directory where main site url would be IP/~username and sub-site I assume would be IP/~username/site-2

    dash of sub-sites poining to IP/~username/site-2/wp-admin

    Also the sub-site front-end shows default network theme with no css.

    this is the multisite definition on wp-content

    define('WP_ALLOW_MULTISITE', true);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', '223.27.22.81');
    define('PATH_CURRENT_SITE', '/~wwwaccou/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    define('WP_DEFAULT_THEME', 'foundation-vanila');

    htaccess looks like:

    RewriteEngine On
    RewriteBase /~wwwaccou/
    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).*) home/wwwaccou/public_html/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ home/wwwaccou/public_html/$2 [L]
    RewriteRule . index.php [L]

    Would be great to have some directions on how to use IP/~usernames with multisite. Thanks in advance!

Viewing 1 replies (of 1 total)
  • also, the subsites css points to
    http://223.27.22.81/~wwwaccou/medical/wp-content/themes/foundation-vanila/style.css?

    and the part “/medical/” should probably not be there as it works with:

    http://223.27.22.81/~wwwaccou/wp-content/themes/foundation-vanila/style.css

Viewing 1 replies (of 1 total)
  • The topic ‘using dev url (IP/~username) with multisite’ is closed to new replies.
Skip to toolbar