I am having a strange issue using a site name with ‘www’.
I am installing WordPress 3.1 (SQL Server Version) on Windows Server 2008 and IIS 7 using a site name like:
No Plugins or other customizations.
The install succeeds. I enable Network by adding the appropriate line of code to the ‘wp-config.php’ file:
define('WP_ALLOW_MULTISITE', true);
The Network option appears under Tools in the admin area.
I enable Network functionality and follow all of the steps:
1. Add blogs.dir directory
2. Add additional code to wp-config.php
3. Add web.config file with recommended code
When I log out and attempt to log back in I receive an “Error establishing database connection” message.
After some troubleshooting I found that if I remove the following lines from wp-config.php the site works again (but without Network functionality).
define( 'SUBDOMAIN_INSTALL', false );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', 'www.sitename.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
Adding these back causes the error to occur immediately.
As an additional test I deleted all of the database tables and performed the same installation steps but used the site name without the ‘www’:
sitename.com
This works fine with Network functionality with everything else being exactly the same.
I need for the site’s primary address to be http://www.sitename.com NOT http://sitename.com.