• Resolved kidl33t

    (@kidl33t)


    I have inherited a project, which is an existing WordPress 3.2.1 Multisite install. It is path based and is using the blogs.dir sub folder (I mention it because I believe this is outdated).

    The first thing I am trying to do is create a local development copy. I installed XAMPP and then WordPress. I copied over the WordPress directory, and backed up the database and copied that over too.

    I fixed all the settings in WP-Config, .htaccess, the CSS paths, and updated all the links and whatnot in the database.

    Everything seems to work ok, except that when I navigate from the dev. site ( localhost/base/ ) to a sub site ( localhost/base/331 ), I get the content from the base page on the sub site. The sub site content loads correctly on the production site.

    I checked my Apache access log, and the only thing I see is this:

    127.0.0.1 - - [14/Oct/2015:09:32:24 -0400] "GET /base/261/ HTTP/1.1" 200 29244 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36"

    My .htaccess looks like this:

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

    Also, in the production site is arranged a bit differently. Sites are access at base.com/331. This is as opposed to my local version, which is localhost/base/331. Perhaps I haven’t accounted for this somewhere.

    ** Update **

    As I investigate a little further, I notice that on the dev site when I go to Network Admin -> All Sites -> View a site dashboard (say the dashboard for localhost/base/311), I see that specific sub sites have ALL posts on their dashboards. Not just the ones specific to to that sub site.

    So a dev sub site’s dashboard has the same post count, file size usage, etc as the main site. This is not the case in the live site.

    I am not sure why.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Multisite Install Is Loading the Same Content for Everysite Site’ is closed to new replies.