Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter lukefretwell

    (@lukefretwell)

    Figured it out.

    Went to ‘Network Setup’ (/wp-admin/network/setup.php) and added the suggested code for the .htaccess file.

    I am currently having the same issue.
    could you please give more detail on how you fixed it?
    Thanks

    Thread Starter lukefretwell

    (@lukefretwell)

    @danacs see in my response above:

    Go to ‘Network Setup’ (/wp-admin/network/setup.php) and added the suggested code for the .htaccess file.

    Sorry but I am a total noob when it comes to the WP config files.
    What suggested code for the htaccess file did you add to setup.php?

    I have done a couple of Google searches & found some info where people had changed things in the htaccess file itself but none of the things I found worked for me but I don’t really know what I’m looking for to be honest.

    Thread Starter lukefretwell

    (@lukefretwell)

    Here’s the instructions:

    1. Add the following to your wp-config.php file in /public_html/ above the line reading /* That’s all, stop editing! Happy publishing. */:

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

    2. Add the following to your .htaccess file in /public_html/, replacing other WordPress rules:

    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [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).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    • This reply was modified 5 years, 6 months ago by lukefretwell.

    Thanks for that but Unfortunately I’m still having no luck with this

    My WP-config:

    define('WP_ALLOW_MULTISITE', true);
    
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'www.mydomain.com.au' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    
    /* That's all, stop editing! Happy blogging. */
    

    It is set as subdirectory so subdomain_install is false
    Im not sure what the $base is? but i have tried with & without it.

    my htaccess:

    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]
    

    wp-includes/ms-files.php?file=$2 – I have tried to set it as 1 & 2

    i tried the code you suggested & it does not work for me – i get 404 errors on wp-admin & site does not display correctly.

    any idea’s?
    really Appreciate the help

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Images show as broken on subdomains’ is closed to new replies.