favicon and multi site

I would use a rewrite to map requests for /favicon.ico to /icons/example.com.ico: RewriteCond %{REQUEST_URI} ^/favicon\.ico RewriteCond %{SERVER_NAME} ^(www\.)?([a-z0-9]+) RewriteCond %{DOCUMENT_ROOT}/icons/%2.ico -f RewriteRule . /icons/%2.ico [L] Note the regex for line #2 depends on your set-up – is each website its own domain, or a subdomain/subdirectory of a primary domain? I would also place a default … Read more

How to move theme directory but not plugins/uploads out of WordPress root directory?

http://codex.wordpress.org/Function_Reference/register_theme_directory /** * Register a directory that contains themes. * * @since 2.9.0 * * @param string $directory Either the full filesystem path to a theme folder or a folder within WP_CONTENT_DIR * @return bool */ function register_theme_directory( $directory ) You should be able to call register_theme_directory(‘/full/path/to/directory’) and thus add a new path full of … Read more

Network setup tab is not shown under Tools

You may want to try putting the line define( ‘WP_ALLOW_MULTISITE’, true ); somewhere near the topic your wp-config.php file. Also make sure you don’t have anything like // or anything like on the same line as it may comment out the define statement. Source: http://codex.wordpress.org/Create_A_Network “Step 2: Allow Multisite “

500 error when using virtual host

You should have a look at this: Request exceeded the limit of 10 internal redirects due to probable configuration error.? and RewriteRule Flags It seems that you have a recursion in there. It is probably the last rule as the dot without anything else will match index.php as well.

Redirect loop (only for multisite network admin)

I also had the same redirect problem when trying to access wp-admin/network. Performing below changes fixed it. 1). In wp-config.php file, added www.website.com rather than just website.com define(‘DOMAIN_CURRENT_SITE’, ‘www.website.com’); 2). use phpmyadmin –> wp_blogs table Add www. to the domain value Basically, both site name and blog name have to be exactly the same. Cheers!

How to get max upload size and accepted file types on multisite?

Yes, you can easily grab those multisite values from database using an MU (μ) Function: get_site_option() Getting Fields Maximum Upload Size The maximum upload size, per site (NOT per blog), per file can be found using: $max_up = get_site_option(‘fileupload_maxk’); var_dump($max_up); //in kilobytes Accepted File Types The accepted file types per site (NOT per blog) can … Read more

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