Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

New WordPress 3.5.2 multisite (subdirectory) install is missing a slash when creating new blogs.

WordPress is installed to server like: blogs.domain.com When a new user registers, the conformation email has the URL for their blog like: blogs.domain.comnewuser (missing the / between the domain and blog name).

From Network Admin, I can edit the site, adding a / to either the end of the Domain field or the begining of the Path field and the site can be accessed: blogs.domain.com/newuser

wp-config:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [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).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>

Adding $base = '/'; to wp-config didn't seem to make a difference.

.htaccess:

define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'blogs.domain.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
fine('BLOG_ID_CURRENT_SITE', 1);

DB:

wp_site has:

domain: blogs.domain.com path: /

wp_blogs has:

domain: blogs.domain.com path: /

but when a new user/blog is added, wp_blogs gets:

domain: blogs.domain.com path: user/

share|improve this question
    
WPMU Ldap Auth plugin is being used also. –  ClevelandState Aug 3 '13 at 13:25
add comment

1 Answer

up vote 0 down vote accepted

WPMU Ldap Authentication was causing the incorrect URL issue. Disabling the plugin allowed users/sites to be created correctly.

This site has a fix for the plugin that allows it to run properly in WP 3.5.2: http://www.fotan.net/wpmu-ldap-plugin-fixes/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.