[wp-hackers] Forcing Multisite to use sub-directories (was: Removing WordPress Multisite data)

Diana Thompson likethegoddess at gmail.com
Wed Aug 11 02:19:14 UTC 2010

Thanks, Navjot, for the link. I'd missed the fields in the users table.

I've managed to un-stick my installation though, as Ashish mentioned, I'm
stuck with sub-domains which my host doesn't allow.

I found a technique to force a multisite install to use sub-directories at
To summarize, it calls for changing the multisite setting in wp-config.php
to define( 'SUBDOMAIN_INSTALL', false ); and the .htaccess file to:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+)  wp-includes/ms-files.php?file=$2

# 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]
# END WordPress

Has anyone tried this technique or have another recommendation?


like the goddess design

More information about the wp-hackers mailing list