• My primary site domain is accessed directly, but all files are in the /wordpress folder.

    I then switched to a multisite subfolder layout, to add anther site. I’m still able to access the primary site normally, including its dashboard. However, I can’t access the network site admin pages (404 error).

    .htaccess is as follows (on root):

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

    Any ideas are welcome…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Try changing this two lines in .htaccess:

    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]

    With this:

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]

    I hope this helps.

    Thread Starter pantau000

    (@pantau000)

    Hi,

    did you mean I should just change “$1” to “$2” in both lines (I had no “RewriteRule ^(wp-(content|admin|includes).*) $1 [L]” in my .htcaccess).

    I tried this, with the same result.

    Do I maybe need to change the “RewriteBase /”, as my primary site is in the “/wordpress” folder?

    Thanks!

    Thread Starter pantau000

    (@pantau000)

    bump

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘non-root multisite access problem’ is closed to new replies.