Possible to have a CMS site within a CMS site?

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Possible to have a CMS site within a CMS site?

Post by duplay »

My question is:

Is it possible to have a CMS site within a CMS site? For example, I have a CMS site at www.sparcc.org (a folder on my server that is linked to a database) I want to create another site within the www.sparcc.org (A folder inside the sparcc folder with a full cms install) So if I went to www.sparcc.org (I would get my first CMS site linked to it's database), but if I went to www.sparcc.org/nmk (I would get my second site linked to a separate database).

I have done the above, copied a sub site into my main site's folder and get the main page of the sub site to show, but any page under that doesnt.


Is this possible to do? Basically, I want mini-cms sites that are linked to their own databases/stylesheets within the orignal CMS site folder I have.

Thanks

MJD
Pierre M.

Re: Possible to have a CMS site within a CMS site?

Post by Pierre M. »

Hello,

You can install any number of CMSms (and other PHP+SQL software) in a single hosting providing you manage installation folders and URLS. See http://wiki.cmsmadesimple.org/index.php ... d_database

You can have minisites folders :
/a
/b
/c
each with its own CMSms install (dedicated config.php) each pointing at the same database with a table prefix cms_a_, cms_b_ and cms_c_.

And a "BigSite" installed in /bigsite or at the root /
Then any site can make links to any other, as an item can be a link (and not only full content) in CMSms.
I hope I have understood well ;)

Pierre M.
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm

Re: Possible to have a CMS site within a CMS site?

Post by duplay »

Help me out with the following:

I have my main site (we will call it folder A) and the web address is: http://www.sparcc.org/

Within the main site/main folder I have a sub-folder called (folder B) named nmk

If I want to go to my main site I go to: http://www.sparcc.org/

If I want to go to my sub site I go to: http://www.sparcc.org/nmk

*The problem is when I go to http://www.sparcc.org/nmk, the main sub site shows up, however, none of the pages within the sub site show. I have set "pretty urls" to FALSE - b/c that is what I read to do. If you go to the sub site above SUPPORT/Contact Us, I get the "system cannot find the file specified on a PC using IE6 and on a MAC.

Any thoughts? Thanks
Pierre M.

Re: Possible to have a CMS site within a CMS site?

Post by Pierre M. »

You want a main site in the root URL :
/
and one or more "minisites" each insite its own folder-URL :
/ijk
/a
/b
if I have understood.

So, I'd have activated all pretty URLs :
-each minisite lives its own life with its own .htaccess inside its own folder.
-the main site .htaccess eliminates the cases of minisites and proceeds as usual.

Something like this for the main :
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !^/ijk/.*
RewriteCond %{REQUEST_FILENAME} !^/a/.*
RewriteCond %{REQUEST_FILENAME} !^/b/.*
RewriteRule ^(.+)\.html$ cmsfolder/index.php?page=$1 [QSA]
Not tested, but the idea is : if it is not for a subsite, catch it fro the main site.

Pierre M.
Locked

Return to “[locked] Installation, Setup and Upgrade”