Multisite, without using plugin?
-
Hi all,
I used to use the following method to do multi-site under wp 2.9 without using any plugin.
I just replace:
$table_prefix = 'wp_';with:
$table_prefix = ereg_replace('^(www\.)', '', $_SERVER['HTTP_HOST']); $table_prefix = ereg_replace('\.', '', $table_prefix); $table_prefix = ereg_replace('\-', '', $table_prefix); $table_prefix = $table_prefix . '_';I think this method still work under wp 3 (I haven’t test it).
I build a test site and tried the multi-site and domain mapping plugin. It seems it’s more complicated than the above method. So I just wonder why I need to follow the “official” way, is there any advantage of doing so? Any comments? Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Multisite, without using plugin?’ is closed to new replies.