Multisite Install is not loading each sites unique content.
-
I have inherited a project, which is an existing WordPress 3.2.1 Multisite install. It is path based and has a 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 dev 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 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"Which looks correct to me. 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]Now, 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.
Does anyone have an idea? I will gladly provide any other information that might be helpful.
-
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, 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.
-
-
Sorry but that site is not hosted by wordpress.COM. Our support docs do not refer to it. We do not provide support for it and you are posting to the wrong support forum.
WordPress.COM and WordPress.ORG are completely separate and have different username accounts, logins, features, run different versions of some themes with the same names, and have separate support documentation and separate support forums. Read the differences here http://en.support.wordpress.com/com-vs-org/
If you don’t have a username account at WordPress.ORG account, then click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, https://wordpress.org/support/register.php so you can post to the support forums there.
Resetting your WordPress.ORG password http://codex.wordpress.org/Resetting_Your_Password
WordPress.org support docs are at https://codex.wordpress.org/Main_Page
- The topic ‘Multisite Install is not loading each sites unique content.’ is closed to new replies.