[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
http://journalxtra.com/2010/07/how-to-force-multi-site-to-use-subdirectories/?
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
[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>
# END WordPress

Has anyone tried this technique or have another recommendation?

Diana

-- 
like the goddess design
www.likethegoddess.com


More information about the wp-hackers mailing list