Ok... I have a flash header in my theme and I am going to have a frontpage that allows you to choose whether you want flash or not on the page... it will be like this...
Frontpage-------> site.com(with flash) OR noflash.site.com(without flash)
So I figured I could do this with multisite...
But... After having read all the multisite posts I could find I still have problems...
I have my server set-up like this:
Public HTML
------->Home(codebase)
------------>sites
------------------>site.com - baseurl = "http://www.site.com/home"
------------------>site.com.noflash - baseurl = "http://www.site.com/home/noflash
What is going wrong? I cannot get it to work... It all looks right to me...
Comments
error
It is site.com.home.noflash instead of site.com.noflash
it was just a typo in the post...
You're getting 404s, right?
The target you're pointing to must exist. In the example you show above, the directory
$webroot/home/noflash
should exist. If the content is the same, simply link it to the$webroot/home
directory.In other words, go into your website directory and type
ln -s . noflash
The docs aren't too great in this regard. It took me quite some time to figure it out as well.
A custom module to handle this might be a better solution anyways.
Module...
I dont have shell access... so how would I go about making this module? I am not so good with php... at all...
Ok... Little help here
Nobody is replying... can anyone help me?
Symbolic links
(Edit: replied to wrong comment - doh!)
Does your admin interface have anything in it that does 'symbolic links' at all? If so use that.
If not you might need to upload a php script to create a symbolic link.
See: http://www.php.net/manual/en/function.symlink.php
Translating
ln -s . noflash
into PHP would look something like this:--
Anton
Themes...(above did work! Thank You!)
I for some reason cannot get each site to have different themes... I have tried to set them in each of their settings.php files and that did not work and then I tried to do it in the admin/themes area and still did not work... both themes are enabled... what am I doing wrong now?
symbolic link
Are the theme directories appearing in both sites subdirectories even when you only put them in one? If so, that would be due to the symbolic link - you really only have one set of files just now with two 'entry points' for them. If you wanted them to be different you won't be able to have them linked. You could make a copy instead, but that will be two sets of files to maintain.
And if both sites are sharing the same database, it also stands to reason that the enabled settings are also shared.
--
Anton
this is how it is...
I have the theme for noflash in the noflash sites directory and it only shows up in the admin/themes of noflash... when I look at admin/themes in my main site I dont get the theme in the noflash directory... so from what I understand I should be able to have my main theme for the main site and have a different one for noflash...
Multisite
Thanks for the post and the answers. I had the same problem with my page