Shared upload folder in wordpress multisite

This will force uploads for all sites to the wp-content/uploads directory. Sub-directories (like year/month) will still exist (if the setting is enabled). /** * Force all network uploads to reside in “wp-content/uploads”, and by-pass * “files” URL rewrite for site-specific directories. * * @link http://wordpress.stackexchange.com/q/147750/1685 * * @param array $dirs * @return array */ function … Read more

Nginx rules for subdomain multisite install (Bedrock)

Ok some wise guy deleted my last post. The answer, which the above member (@etc) gave to me on another forum, and is working quite fine, is as follows: # Rewrites for Bedrock Multi-Site Subdomain Setup rewrite /wp-admin$ $scheme://$host$uri/ last; rewrite ^/(wp-.*.php)$ /wp/$1 last; rewrite ^/(wp-(content|admin|includes).*) /wp/$1 last; He revised his answer but did not … Read more

Can I run a second wordpress site as a subdomain without using multisite?

Point the subdomain to the same directory as the main site, and define different settings in your wp-config.php per $_SERVER[‘HTTP_HOST’]: Example from my local setup: switch ( $_SERVER[‘HTTP_HOST’] ) { case ‘zzl.dev’: $table_prefix = ‘zzl_’; $table_name=”zzl”; break; case ‘wpbuch.dev’: $table_prefix = ‘wpbuch_’; $table_name=”wpbuch”; break; default: $table_prefix = ‘wp_’; $table_name=”wpdev”; break; } $sub = ‘/wp-content/’ . … Read more

Change management solution for BP-based site?

There is no settled solution for change management in a WordPress environment. I recently wrote about one approach, that might be helpful. @scribu then brought our attention to this new ‘Ramp’ offering for content staging. which might be of interest, depending on your use case. @MikeSchinkel has his own potential solution which doesn’t attempt to … Read more

Error 101 after upgrading WordPress

Are you sure /wp-includes/load.php made it to the server? If you were installing manually, there’s a chance it got lost during the transfer. Happens to me occasionally using FileZilla. The error messages are basically telling you that the server can’t find the file, so make sure the file is there.

merging two multisites

A lot depends on the setup of the two current multisites: Do they share a common user base, if any? What kind of plugins are installed, if any? Likewise themes? Is it obvious which one is going to be imported in to the other? How many different authors are there? Things like author IDs will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)