grego3781
Member
Posted 15 years ago #
Hello,
I have Mu installed on a subdomain:
http://subdomain.myurl.com
I would like all additional blogs to be shown as a sub-directory:
http://subdomain.myurl.com/site1
http://subdomain.myurl.com/site2
http://subdomain.myurl.com/site3
I'm assuming that a .htaccess hack can make this happen. Does anyone know of the code to do this?
TIA
Why not set a subdomain in your apache config and your domain settting and then install WPMU in subdirectory mode.
If you do that then you do not need to do anything odd with .htaccess
grego3781
Member
Posted 15 years ago #
Hi SteveAtty,
I'm using GoDaddy as my host and setup a subdomain using the Admin Panel (subdomain.myurl.com pointing to myurl.com/subdomain ). I then installed MU in myurl.com/subdomain. I then configured wp-config as:
...
define('VHOST', 'yes');
$base = '/';
define('DOMAIN_CURRENT_SITE', 'subdomain.myurl.com' );
define('PATH_CURRENT_SITE', '/' );
define('BLOGID_CURRENT_SITE', '1' );
...
Is this what you mean?
thanks!
I dunno what you're doing becasue if you just put the MU files in subdomain.myurl.com and run the install, choosing the subfolder option on the install screen, you'll get what you want.
No hacks, no fiddling with anything.
(I've actually just set up an install in this exact same format, and at godaddy.)
grego3781
Member
Posted 15 years ago #
Hi andrea_r,
I'll replicate what you've done and see if that will work. Will get back to you tomorrow.
Thanks
Parmen
Member
Posted 15 years ago #
Andrea, do you have problems with Google? There is a code in the bottom of your page
google.load("language", "1"); var curstate = 0; var hasloaded = 0; function bnc_show_translated() { if (hasloaded == 0) { bnc_lang_callback(); ...
nah, it's another plugin I forgot to remove completely. Doesn't show in FF so I missed it.