Open this file in your browser, download and copy into your wp-inst/ folder as “wp-newblog.php”
Create the following entry in your root .htaccess file too (modify to suit your site):
RewriteRule ^([_0-9a-z-]+)/wp-newblog.php(.*) /wp-inst/wp-newblog.php [L]
Call it by going to http:// example.com/main/wp-newblog.php
It’s a very simplistic script, there’s no error checking, it creates a new directory before handing over control to the WordPress install.php
Give it a whirl but when you’re finished be sure to delete it or move it out of the way!
Hiya,
Just thought I’d say that this is fantastic, I’m not that, um, good with the code though and was wondering if you could be a bit more specific about which .htaccess file & where I should put the code, I’m getting to Weblog ID:
/wp-inst/wp-newblog.php
But am then getting ‘too many redirect’ problems :o(
Sorry for the bother. Maybe a copy of the .htaccess code you use might help???
Thanks again for a very cool app though!
Cheers, James
James – in the directory where “wp-inst” is you’ll find a file called “.htaccess”. Just edit that and insert the above line at line 60. Just remember to change the path to “wp-inst” to make it look like the lines above and below it in .htaccess
Hope that helps!
Well, I have tried to figure this out on my own for a few days with no success, so to the master I come.
I have set up WPMU with the registration code. The problem is when a user registers, it sends an email to them that tells them they can log in at:
http://www.host.com/wpmu/wp-inst/wp-admin
I need it to tell them they directory address, which should be something like:
http://www.host.com/wpmu/user_directory/wp-login.php
In the email code, the program supplies a variable called: $guessurl
I hope someone can help.
Crikey, you’re not going to believe this but we’ve just figured out what my ” ‘too many redirect’ ” problems are… if you put in a folder name with capital letters… it won’t work!
I’d love to be able to code a solution (and might have a go) but thought I’d leave it here for the professionals 🙂
Cheers, James